diff -r 02f683ded030 -r 3f90aab4794d noteobj.cpp --- a/noteobj.cpp Tue Jun 03 08:33:03 2008 +0000 +++ b/noteobj.cpp Mon Jul 14 11:25:09 2008 +0000 @@ -170,6 +170,7 @@ // Remove the doctype, which will confuse parsing // with XmlReader in Qt >= 4.4 QRegExp rx(""); + rx.setMinimal(true); n.replace (rx,""); // QTextEdit may generate fontnames with unquoted &, like @@ -197,7 +198,6 @@ if (s.count("style=\"")>1) { rx.setPattern("style=\\s*\"(.*)\"\\s*style=\\s*\"(.*)\""); - rx.setMinimal (true); s.replace(rx,"style=\"\\1 \\2\""); n.replace (begin_bracket,sl,s); pos=pos-(sl-s.length());