@@ -774,17 +774,19 @@ QString Expert::getDocsForNode(const QDomElement &child) const
774774 QString docs = SA (" " );
775775 // read documentation text
776776 QDomElement docsVal = child.firstChildElement ();
777+ bool first = true ;
777778 while (!docsVal.isNull ())
778779 {
779780 if (docsVal.tagName ()==SA (" docs" ) &&
780781 docsVal.attribute (SA (" doxywizard" )) != SA (" 0" ))
781782 {
783+ if (!first) docs += SA (" <br/>" );
784+ first = false ;
782785 for (QDomNode n = docsVal.firstChild (); !n.isNull (); n = n.nextSibling ())
783786 {
784787 QDomText t = n.toText ();
785788 if (!t.isNull ()) docs+=t.data ();
786789 }
787- docs += SA (" <br/>" );
788790 }
789791 docsVal = docsVal.nextSiblingElement ();
790792 }
@@ -835,12 +837,11 @@ QString Expert::getDocsForNode(const QDomElement &child) const
835837 }
836838 if (child.attribute (SA (" defval" )) != SA (" " ))
837839 {
838- docs+= SA (" <br/>" );
840+ if (! docs. endsWith ( SA ( " <br/> " ))) docs += SA (" <br/>" );
839841 docs+=SA (" <br/>" );
840842 QString defval = child.attribute (SA (" defval" ));
841843 docs+=SA (" " )+m_messages[SA (" defvalcode" )].arg (defval);
842844 }
843- docs+= SA (" <br/>" );
844845 }
845846 else if (type==SA (" int" ))
846847 {
@@ -850,7 +851,6 @@ QString Expert::getDocsForNode(const QDomElement &child) const
850851 QString maxval = child.attribute (SA (" maxval" ));
851852 QString defval = child.attribute (SA (" defval" ));
852853 docs+=m_messages[SA (" minmaxdef" )].arg (minval).arg (maxval).arg (defval);
853- docs+= SA (" <br/>" );
854854 }
855855 else if (type==SA (" bool" ))
856856 {
@@ -866,7 +866,6 @@ QString Expert::getDocsForNode(const QDomElement &child) const
866866 QString valStr = (defval==SA (" 1" )?SA (" YES" ):SA (" NO" ));
867867 docs+=SA (" " )+m_messages[SA (" defvalcode" )].arg (valStr);
868868 }
869- docs+= SA (" <br/>" );
870869 }
871870 else if (type==SA (" list" ))
872871 {
@@ -929,7 +928,6 @@ QString Expert::getDocsForNode(const QDomElement &child) const
929928 docsVal = docsVal.nextSiblingElement ();
930929 }
931930 }
932- // docs+= SA("<br/>");
933931 }
934932 }
935933 else if (type==SA (" string" ))
@@ -942,7 +940,6 @@ QString Expert::getDocsForNode(const QDomElement &child) const
942940 if (!docs.endsWith (SA (" <br/>" ))) docs += SA (" <br/>" );
943941 docs+=SA (" <br/>" );
944942 docs += SA (" " )+m_messages[SA (" defdir" )].arg (defval);
945- docs += SA (" <br/>" );
946943 }
947944 }
948945 else if (child.attribute (SA (" format" )) == SA (" file" ))
@@ -960,7 +957,6 @@ QString Expert::getDocsForNode(const QDomElement &child) const
960957 {
961958 docs += SA (" " )+m_messages[SA (" deffilecode" )].arg (defval);
962959 }
963- docs += SA (" <br/>" );
964960 }
965961 else
966962 {
@@ -969,7 +965,6 @@ QString Expert::getDocsForNode(const QDomElement &child) const
969965 if (!docs.endsWith (SA (" <br/>" ))) docs += SA (" <br/>" );
970966 docs+=SA (" <br/>" );
971967 docs += SA (" " )+m_messages[SA (" deffilefull" )];
972- docs += SA (" <br/>" );
973968 }
974969 }
975970 }
@@ -988,7 +983,6 @@ QString Expert::getDocsForNode(const QDomElement &child) const
988983 {
989984 docs += SA (" " )+m_messages[SA (" defimgabs" )].arg (defval);
990985 }
991- docs += SA (" <br/>" );
992986 }
993987 else
994988 {
@@ -997,7 +991,6 @@ QString Expert::getDocsForNode(const QDomElement &child) const
997991 if (!docs.endsWith (SA (" <br/>" ))) docs += SA (" <br/>" );
998992 docs+=SA (" <br/>" );
999993 docs += SA (" " )+m_messages[SA (" defimgfull" )];
1000- docs += SA (" <br/>" );
1001994 }
1002995 }
1003996 }
@@ -1008,7 +1001,6 @@ QString Expert::getDocsForNode(const QDomElement &child) const
10081001 if (!docs.endsWith (SA (" <br/>" ))) docs += SA (" <br/>" );
10091002 docs+=SA (" <br/>" );
10101003 docs += SA (" " )+m_messages[SA (" defvalcode" )].arg (defval);
1011- docs += SA (" <br/>" );
10121004 }
10131005 }
10141006 }
0 commit comments