[Interest] strange character '
' appended by QTextEdit
baneyue
baneyue at gmail.com
Sat Oct 19 05:49:57 CEST 2013
On Fri, Oct 18, 2013 at 08:19:24AM -0700, Thiago Macieira wrote:
> On sexta-feira, 18 de outubro de 2013 17:37:39, baneyue wrote:
> > I've found some similiar situation on the stackoverflow[1], the
> > answer marked with `Correct` suggested that the xml node should keep
> > all characters in **one** line, but i really need to store it in a
> > __stuctured__ way **WITHOUT** the `
`.
>
> 
 is CR and it appears at the end of the line. That could be a CRLF vs LF
> mixup. Can you check the code that writes to the file?
Hi Thiago:
The code write to file is pretty __regular__ i think. I use the code
below:
QFile file("path/to/stylefile.xml");
file.open(QFile::WriteOnly | QFile::Text);
QTextStream stream;
stream.setDevice(&file);
dom_doc.save(stream, 4);
file.close();
I'm curious about it since all my work is doing under windows, how
could the CRLF&LF mixup happen?
Regards,
baneyue
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list