Package: qrfcview Version: 0.62-5.1 Severity: normal Tags: patch If you open for example the RFC 4287, section 4.1.1, it contains the following title:
4.1.1. The "atom:feed" Element which appears as: 4.1.1. The "e;atom:feed"e; Element in the document outline panel. The problem comes from the transformation of the document to suit the HTML renderer and some characters are HTML-encoded, but the tree model for the outline panel is filled with those encoded characters, whereas it doesn't understand HTML entities. I made a two lines patch to fix the problem, it basically use the title from the original document to fill the tree model instead of the transformed title. Thanks, Jonathan -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.39-1-686-pae (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages qrfcview depends on: ii libc6 2.13-4 Embedded GNU C Library: Shared lib ii libgcc1 1:4.6.0-9 GCC support library ii libqt4-network 4:4.7.3-1 Qt 4 network module ii libqtcore4 4:4.7.3-1 Qt 4 core module ii libqtgui4 4:4.7.3-1 Qt 4 GUI module ii libstdc++6 4.6.0-9 The GNU Standard C++ Library v3 qrfcview recommends no packages. Versions of packages qrfcview suggests: pn doc-rfc <none> (no description available) -- no debconf information
--- qrfcview-0.62.orig/src/mdichild.cpp 2011-05-29 09:44:23.000000000 +0900 +++ qrfcview-0.62/src/mdichild.cpp 2011-05-29 09:44:09.000000000 +0900 @@ -167,6 +167,7 @@ while( !qInStream.atEnd() ) { qLine=qInStream.readLine(); + QString originalLine(qLine); // Replace character qLine.replace(QChar('&'),QString("&") ); @@ -177,7 +178,7 @@ iNextState=iState; if (iState==PARSER_NORMALTEXT) { - if ( (qRegExpTitle.indexIn(qLine, 0)) != -1) + if ( (qRegExpTitle.indexIn(originalLine, 0)) != -1) { // Is it a new title? // Check title num is correct if (m_pTitleModel->ParseTitle(qRegExpTitle.cap(1), qRegExpTitle.cap(2) ))