diff options
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/decks.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/tilereg.cc | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc index 76dec12063..b47442fe65 100644 --- a/crawl-ref/source/decks.cc +++ b/crawl-ref/source/decks.cc @@ -935,10 +935,6 @@ static void _describe_cards(std::vector<card_type> cards) name = uppercase_first(name); data << "<w>" << name << "</w>\n" << get_linebreak_string(desc, get_number_of_cols()) -#ifdef USE_TILE - // For some reason we need another linebreak here, for the tiles version. - << EOL -#endif << EOL; } formatted_string fs = formatted_string::parse_string(data.str()); diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc index e4173944f1..73992978f1 100644 --- a/crawl-ref/source/tilereg.cc +++ b/crawl-ref/source/tilereg.cc @@ -2172,12 +2172,14 @@ void TextRegion::addstr(char *buffer) { char c = buffer[i]; bool newline = false; - if (c == '\n' || c == '\r') + + if (c == '\r') + continue; + + if (c == '\n') { c = 0; newline = true; - if (buffer[i+1] == '\n' || buffer[i+1] == '\r') - i++; } buf2[j] = c; j++; |