diff -r 02f683ded030 -r 192e1392ba6a noteobj.cpp --- a/noteobj.cpp Tue Jun 03 08:33:03 2008 +0000 +++ b/noteobj.cpp Wed Jul 16 10:44:44 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());