Commit d2acdcf3 authored by albert-github's avatar albert-github

Empty entry in \tableofcontents in case e.g. section without description.

In case a section, subsection etc just has a tag and not a description in the \tableofcontents there is nothing mentioned. With this patch the tag is used as description when no description is present, as is done on other places as well (consistency and no empty items in the \tableofcontents).
parent 4df52916
...@@ -1618,7 +1618,7 @@ void Definition::writeToc(OutputList &ol) ...@@ -1618,7 +1618,7 @@ void Definition::writeToc(OutputList &ol)
} }
cs[0]='0'+nextLevel; cs[0]='0'+nextLevel;
if (inLi[nextLevel]) ol.writeString("</li>\n"); if (inLi[nextLevel]) ol.writeString("</li>\n");
ol.writeString("<li class=\"level"+QCString(cs)+"\"><a href=\"#"+si->label+"\">"+si->title+"</a>"); ol.writeString("<li class=\"level"+QCString(cs)+"\"><a href=\"#"+si->label+"\">"+(si->title.isEmpty()?si->label:si->title)+"</a>");
inLi[nextLevel]=TRUE; inLi[nextLevel]=TRUE;
level = nextLevel; level = nextLevel;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment