summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-10-24 00:29:26 -0400
committerCharles Otto <ottochar@gmail.com>2009-10-24 00:30:21 -0400
commit068459aa20c4a7c7abb759ca42a1caabf3e58750 (patch)
tree5043e3129c0581228f83bb1262c9be7c9b80435c /crawl-ref/source/misc
parent77b88793c623fab999504a0578418525d72b3cea (diff)
downloadcrawl-ref-068459aa20c4a7c7abb759ca42a1caabf3e58750.tar.gz
crawl-ref-068459aa20c4a7c7abb759ca42a1caabf3e58750.zip
Fix bug [2864019] - assertion failure after pressing ctrl-O
An assert was getting triggered in format.cc when the line wrapping used in display_overmap placed a line break after a text color tag was opened and before it was closed. This was happening with the brown text used for shop locations and also the yellow text used for branch locations. Using linebreak_string2 instead of linebreak_string takes care of the shop location lines since it places line breaks on whitespace. For the branch location strings placing the padding spaces after the </yellow> tag instead of between the tags took care of the issue. A more principled thing to do would be to make formatted_scroller keep track of what tags are open across line breaks, but I got lazy.
Diffstat (limited to 'crawl-ref/source/misc')
0 files changed, 0 insertions, 0 deletions