diff options
-rw-r--r-- | src/rtfparser.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/rtfparser.cpp b/src/rtfparser.cpp index 2928aa7..f2379b3 100644 --- a/src/rtfparser.cpp +++ b/src/rtfparser.cpp @@ -177,6 +177,17 @@ bool RtfReader::parseControlWord(RtfContext& cx) break; } + // Escaped braces + else if(empty && ch == '{') + { + sendData(cx, L'{'); + } + + else if(empty && ch == '}') + { + sendData(cx, L'}'); + } + // Non breaking space else if(empty && ch == '~') { @@ -389,7 +400,6 @@ done: if(m_depth != 0) m_parseErrors.append("unmatched braces\n"); - // TODO: Check depth and give errors if screwy if(m_handler) m_handler->endDocument(); |