diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-04-11 16:14:35 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-04-12 17:11:36 +0200 |
commit | 1018d69bdada22e5cd8d9fa246c54fcd9feb7c6c (patch) | |
tree | ff757ab162897805338bdce302d938bef706fa0c /sax | |
parent | c4fbb0360889ded44ccbade8bb893eac5f1fbd2f (diff) |
escape \n and \r too in escapeXml()
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/fastserializer.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx index e3d7e91e23c3..b5bc636395c0 100644 --- a/sax/source/tools/fastserializer.cxx +++ b/sax/source/tools/fastserializer.cxx @@ -105,6 +105,8 @@ namespace sax_fastparser { case '&': sBuf.appendAscii( "&" ); break; case '\'': sBuf.appendAscii( "'" ); break; case '"': sBuf.appendAscii( """ ); break; + case '\n': sBuf.appendAscii( " " ); break; + case '\r': sBuf.appendAscii( " " ); break; default: sBuf.append( c ); break; } } |