PDA

View Full Version : QTextBrowser ignore $nbsp



ksierens
27th October 2006, 18:08
When I save a HTML file from Microsoft Word, I am getting double lines when it is viewed in the QTextBrowser widget, which seems to be caused by the &nbsp's in the file.

Is there a way for me to filter these out?

jpn
27th October 2006, 18:15
Heh, the HTML created by M$ Word is a real mess. :) I guess you'll have to manipulate the HTML content by hand and remove those additional &nbsp's..

wysota
27th October 2006, 18:16
You can ask Micro$oft to implement a better html exporter for Word ;)

And seriously, you have to remove them yourself or using some external tool like HTMLtidy.


jpn was faster this time... :crying: But my M$ comment still stands ;)