realXtend / tundra

realXtend Tundra SDK, a 3D virtual world application platform.
www.realxtend.org
Apache License 2.0
84 stars 70 forks source link

Whitespace characters are not printed correctly in the GUI console. #758

Open Stinkfist0 opened 10 years ago

Stinkfist0 commented 10 years ago

f.ex. printing

                     foo

appears as

foo

in the GUI console. Also f.ex. newlines are omitted.

jonnenauha commented 10 years ago

Its probably calling QString::Simplified which removes all extra whitespace/newlines from the string. Why is it important to get spacing into UI console. The indents will show fine in cmd propt which is what you should be using for this kind of stuff. I assume indenting is only important for getting somwhat structured debug prints.

Stinkfist0 commented 10 years ago

For indentations it's not that critical but f.ex. an XML becomes a horrible one-liner to read or reuse. Also copy-pasting from the native console is much more annoying compared to the QTextEdit.

jonnenauha commented 10 years ago

As a matter of fact we should just make the font monospace. Otherwise even if the whitespace would be there, it would look horrible. Good old Courier New 10-12px +1 :D Should be a trivial stylesheet change away.