| 900 | } |
| 901 | |
| 902 | string getFAQ_Answer(const string &question) |
| 903 | { |
| 904 | string key = "a" + question.substr(1, question.length()-1); |
| 905 | string val = unwrap_desc(_query_database(FAQDB, key, false, true)); |
| 906 | |
| 907 | // Remove blank lines between items on a bulleted list, for small |
| 908 | // terminals' sake. Far easier to store them as separated paragraphs |
| 909 | // in the source. |
| 910 | // Also, use a nicer bullet as we're already here. |
| 911 | val = replace_all(val, "\n\n*", "\n•"); |
| 912 | |
| 913 | return val; |
| 914 | } |
| 915 | |
| 916 | ///////////////////////////////////////////////////////////////////////////// |
| 917 | // Miscellaneous DB specific functions. |
no test coverage detected