diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-05-11 01:48:41 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-05-11 13:13:01 +0200 |
commit | 36edc7f26d3a67a06f917e2f00d23a0d8d1d1535 (patch) | |
tree | 16092d1653e1dded9c7f0c3f42949ab7d98bfc9e /crawl-ref/source/database.cc | |
parent | bfc1bd67ab13dd25774737dc3a7fa69af2d0f510 (diff) | |
download | crawl-ref-36edc7f26d3a67a06f917e2f00d23a0d8d1d1535.tar.gz crawl-ref-36edc7f26d3a67a06f917e2f00d23a0d8d1d1535.zip |
Separate bulleted items in FAQ entries by empty lines in the source.
This allows using the same transifex scripts as for descriptions.
Diffstat (limited to 'crawl-ref/source/database.cc')
-rw-r--r-- | crawl-ref/source/database.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/database.cc b/crawl-ref/source/database.cc index 6ed28fdae0..7c10aab816 100644 --- a/crawl-ref/source/database.cc +++ b/crawl-ref/source/database.cc @@ -860,7 +860,15 @@ std::string getFAQ_Question(const std::string &key) std::string getFAQ_Answer(const std::string &question) { std::string key = "a" + question.substr(1, question.length()-1); - return _query_database(FAQDB, key, false, true); + std::string val = unwrap_desc(_query_database(FAQDB, key, false, true)); + + // Remove blank lines between items on a bulleted list, for small + // terminals' sake. Far easier to store them as separated paragraphs + // in the source. + // Also, use a nicer bullet as we're already here. + val = replace_all(val, "\n\n*", "\n•"); + + return val; } ///////////////////////////////////////////////////////////////////////////// |