YourPaste - For your paste! Archive - Tools - Login

Posted by porten on Sun 28 Feb 2010 15:07 169 views - Syntax: None - Expires: never - Report - IMG - Download -

Index: xml/dom_stringimpl.cpp
===================================================================
--- xml/dom_stringimpl.cpp      (revision 1096575)
+++ xml/dom_stringimpl.cpp      (working copy)
@@ -224,6 +224,9 @@
         if (ch == '\t') ch = ' ';
 
         if (!preserveLF && ch == '\n') {
+            // strip leading newlines
+            if (pos == 0)
+                continue;
             // ### Not strictly correct according to CSS3 text-module.
             // - In ideographic languages linefeed should be ignored
             // - and in Thai and Khmer it should be treated as a zero-width space
 

Comments


Name:
Comment:

© 2010 YourPaste.net - Disclaimer