diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2013-12-02 15:01:07 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2013-12-05 01:33:23 +0100 |
commit | ec22645358255c4abd84b0d185712e02ffdc4881 (patch) | |
tree | 79faf8a7a900c0c8e2d4b25a76869a932b5d726c /crawl-ref/source/format.cc | |
parent | 6514eeee62ae0d1086bb05df861e5b4638d5c0c9 (diff) | |
download | crawl-ref-ec22645358255c4abd84b0d185712e02ffdc4881.tar.gz crawl-ref-ec22645358255c4abd84b0d185712e02ffdc4881.zip |
Fix escaped < not being unescaped if it is on line end.
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r-- | crawl-ref/source/format.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc index cf3c777d9b..2862dc91e5 100644 --- a/crawl-ref/source/format.cc +++ b/crawl-ref/source/format.cc @@ -136,7 +136,7 @@ void formatted_string::parse_string1(const string &s, formatted_string &fs, continue; } - if (s[tag] != '<' || tag >= length - 2) + if (s[tag] != '<' || tag >= length - 1) { if (!masked) currs += s[tag]; |