Skip to content

Commit

Permalink
Empty entry in \tableofcontents in case e.g. section without descript…
Browse files Browse the repository at this point in the history
…ion.

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).
  • Loading branch information
albert-github committed Oct 11, 2014
1 parent 4df5291 commit d2acdcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definition.cpp
Expand Up @@ -1618,7 +1618,7 @@ void Definition::writeToc(OutputList &ol)
}
cs[0]='0'+nextLevel;
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;
level = nextLevel;
}
Expand Down

0 comments on commit d2acdcf

Please sign in to comment.