Skip to content

Commit 3c65317

Browse files
committed
Navigation tree doesn't render due to \n in output
Due to a construct like: ``` --- Example: - -w '%{response_code}\n' $URL --- # Section Section ## Sub Section subsection ``` where the GitHub construct with the `---` is always interpreted as a header. By removing the the `\n` from the navtree JavaScript output the problem is solved.
1 parent a2747f8 commit 3c65317

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ftvhelp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ static void generateJSLink(TextStream &t,const FTVNodePtr &n)
556556
{
557557
bool nameAsHtml = !n->nameAsHtml.isEmpty();
558558
QCString link = nameAsHtml ? convertToJSString(n->nameAsHtml,true) : convertToJSString(n->name);
559+
link = substitute(link,"\n","");
559560
if (n->file.isEmpty()) // no link
560561
{
561562
t << "\"" << link << "\", null, ";

0 commit comments

Comments
 (0)