diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2009-12-07 18:12:17 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2009-12-07 18:12:17 +0100 |
commit | 389bb3b9bce97d135307b650eb95d3ea1ad1e557 (patch) | |
tree | 5bacbfe485316a876cb6eb87d2a1ee983c39282a /crawl-ref/source/menu.cc | |
parent | 87da8db7d1e1a45d9aadaf6b4bc6f07ae5c822e0 (diff) | |
download | crawl-ref-389bb3b9bce97d135307b650eb95d3ea1ad1e557.tar.gz crawl-ref-389bb3b9bce97d135307b650eb95d3ea1ad1e557.zip |
Use proper newlines in the ?v version information.
I hope this isn't another one of those ascii/tiles or OS differences but
for me at least the empty lines between sections weren't being displayed
in the console version, either.
Diffstat (limited to 'crawl-ref/source/menu.cc')
-rw-r--r-- | crawl-ref/source/menu.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc index 846f5fc0fa..10f865adc5 100644 --- a/crawl-ref/source/menu.cc +++ b/crawl-ref/source/menu.cc @@ -1716,12 +1716,15 @@ formatted_scroller::formatted_scroller(int _flags, const std::string& s) : add_text(s); } -void formatted_scroller::add_text(const std::string& s) +void formatted_scroller::add_text(const std::string& s, bool new_line) { std::vector<formatted_string> parts; formatted_string::parse_string_to_multiple(s, parts); for (unsigned int i = 0; i < parts.size(); ++i) add_item_formatted_string(parts[i]); + + if (new_line) + add_item_formatted_string(formatted_string::parse_string(EOL)); } void formatted_scroller::add_item_formatted_string(const formatted_string& fs, |