# HG changeset patch # User Torsten # Date 1374527930 -7200 # Node ID 08f0e372d006142a43135440c9bad55ff21dd67f # Parent 8d84dc5f5b5de55dbf94a30ffc44d04dd0fa99ff doc viewer: correct the anchor position of the desired doc entry * parser.cc(get_next_node): correct the size of lines read from the info files where image links are discarded, (node_text_to_html): use redled.png as marker for the desired doc entry diff --git a/libgui/src/qtinfo/parser.cc b/libgui/src/qtinfo/parser.cc --- a/libgui/src/qtinfo/parser.cc +++ b/libgui/src/qtinfo/parser.cc @@ -179,9 +179,29 @@ parser::get_next_node (QIODevice *io) { QString text; + QByteArray line, line_buffer; + char c; + int i; + while (!io->atEnd ()) { - QByteArray line = io->readLine (); + io->getChar (&c); + if (c) + { // first char is not equal 0 + io->ungetChar (c); + line = io->readLine (); + } + else + { // 0 was read -> image -> text length changes + line_buffer = io->readLine (); // image tag that is not needed + line = io->readLine (); // firsts line of text message + for (i=1; i" + text2; + text = text1 + "
 " + + text2; } else { @@ -371,7 +393,9 @@ text.append (navigationLinks); text.prepend ("\n"); text.append ("\n"); + return text; + } void