noteobj.cpp
changeset 711 d6376f767d27
parent 708 02f683ded030
child 721 12958f987bcf
     1.1 --- a/noteobj.cpp	Tue Jun 03 08:34:56 2008 +0000
     1.2 +++ b/noteobj.cpp	Sun Jun 08 19:26:07 2008 +0000
     1.3 @@ -170,6 +170,7 @@
     1.4  	// Remove the doctype, which will confuse parsing 
     1.5  	// with XmlReader in Qt >= 4.4
     1.6  	QRegExp rx("<!DOCTYPE.*>");
     1.7 +	rx.setMinimal(true);
     1.8  	n.replace (rx,"");
     1.9  	
    1.10  	// QTextEdit may generate fontnames with unquoted &, like
    1.11 @@ -197,7 +198,6 @@
    1.12  			if (s.count("style=\"")>1)
    1.13  			{
    1.14  				rx.setPattern("style=\\s*\"(.*)\"\\s*style=\\s*\"(.*)\"");
    1.15 -				rx.setMinimal (true);
    1.16  				s.replace(rx,"style=\"\\1 \\2\"");
    1.17  				n.replace (begin_bracket,sl,s);
    1.18  				pos=pos-(sl-s.length());