diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2013-11-27 21:55:15 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2013-11-28 10:54:37 +0100 |
commit | a687c1e5f8be2e45d21516e90fa4425e6c842ebc (patch) | |
tree | f89d4b14f44484f5b78db05d25dbbdafa179f080 /crawl-ref/source/hints.cc | |
parent | f33295874f0c7ecf273ee9d10193884f07c956db (diff) | |
download | crawl-ref-a687c1e5f8be2e45d21516e90fa4425e6c842ebc.tar.gz crawl-ref-a687c1e5f8be2e45d21516e90fa4425e6c842ebc.zip |
Don't remove double newlines when printing tutorial messages.
And don't strip lines. This should simplify formatting them.
Diffstat (limited to 'crawl-ref/source/hints.cc')
-rw-r--r-- | crawl-ref/source/hints.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/hints.cc b/crawl-ref/source/hints.cc index f0df0408c6..accd6bafe5 100644 --- a/crawl-ref/source/hints.cc +++ b/crawl-ref/source/hints.cc @@ -4540,11 +4540,11 @@ void tutorial_msg(const char *key, bool end) text = untag_tiles_console(text); if (end) - screen_end_game(replace_all(text, "\n\n", "\n")); + screen_end_game(text); // "\n" to preserve indented parts, the rest is unwrapped, or split into // paragraphs by "\n\n", split_string() will ignore the empty line. - vector<string> chunks = split_string("\n", text); + vector<string> chunks = split_string("\n", text, false); for (size_t i = 0; i < chunks.size(); i++) mpr(chunks[i], MSGCH_TUTORIAL); |