Skip to content

Commit 1ffd4ea

Browse files
committed
Incorrect line number in warning message
When having e.g.: ``` # Unit tests Requirements \page test_requirements Unit tests Requirements Extended \line_3 ``` we get the warning: ``` test.md:4: warning: Found unknown command '\line_3' ``` when running `doxygen -d markdown` we see: ``` \page md_test Unit tests Requirements\ilinebr @anchor test_requirements Extended \line_3 ``` so an extra `\n` before the word `Extended` due to the fact that an explicit `\n` was written but it was also still included in the "remainder"
1 parent 2664015 commit 1ffd4ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/markdown.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3537,7 +3537,7 @@ void MarkdownOutlineParser::parseInput(const QCString &fileName,
35373537
docs = docs.left(match[1].position())+ // part before label
35383538
newLabel+ // new label
35393539
match[2].str()+ // part between orgLabel and \n
3540-
"\\ilinebr @anchor "+orgLabel+"\n"+ // add original anchor
3540+
"\\ilinebr @anchor "+orgLabel+ // add original anchor
35413541
docs.right(docs.length()-match.length()); // add remainder of docs
35423542
}
35433543
}

0 commit comments

Comments
 (0)