Results 1 to 3 of 3

Thread: QTextBrowser ignore $nbsp

  1. #1
    Join Date
    Mar 2006
    Location
    Troy, Michigan, USA
    Posts
    17
    Thanks
    2
    Qt products
    Qt3
    Platforms
    MacOS X Unix/X11 Windows

    Default QTextBrowser ignore $nbsp

    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?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTextBrowser ignore $nbsp

    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..
    J-P Nurmi

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTextBrowser ignore $nbsp

    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... But my M$ comment still stands

Similar Threads

  1. CSS in QTextBrowser
    By gesslar in forum Qt Programming
    Replies: 1
    Last Post: 4th April 2006, 09:17
  2. [QT4] QtextBrowser and image size (win)
    By sebgui in forum Qt Programming
    Replies: 0
    Last Post: 28th March 2006, 21:01
  3. Replies: 2
    Last Post: 15th March 2006, 12:13
  4. QTextBrowser
    By sreedhar in forum Qt Programming
    Replies: 4
    Last Post: 14th March 2006, 13:27
  5. how to adjust sizes of QTextBrowser?
    By Pan Wojtas in forum Qt Programming
    Replies: 2
    Last Post: 7th February 2006, 22:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.