summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-03-31 00:10:49 +0000
committerStef Walter <stef@memberwebs.com>2004-03-31 00:10:49 +0000
commit37da2787060aa8ec1a87610650bd069c8c38cf2e (patch)
treeeafa30d650d67b589b2d5a63f593523ec6137520
parent69aa93c828303dcc44253fe88ff3d6024d10817b (diff)
Fixed brace problem.
-rw-r--r--src/rtfparser.cpp12
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();