18

I'm having a hard time locating the documentation explaining how to add a line break in Doxygen markdown.

I've tried using two spaces at the end of the line, and I've also tried a single or double newline, but none of these are working for me.

I'm using Doxygen version 1.8.9.1.

  • 6
    Did you try \n followed by a space or
    – albert Jul 08 '15 at 17:09
  • 5
    @albert Thanks, both of those work! I'm still hoping there is some other way, or something I was doing wrong, because using things like html or escape sequences in Markdown sort of defeats the point of using markdown. –  Jul 08 '15 at 17:57

2 Answers2

14

Put a HTML-break tag <br> where you want to have a linebreak, does the job. At least for man page output and HTML output.

9

Add \n followed by a space at the end of your line [1].

Especially recommended when editing with Emacs, which reacts in weird ways to the other suggested solution <br>.

[1] As per @albert's comment. Works for me under Doxygen 1.8.13.

Joachim W
  • 7,290
  • 5
  • 31
  • 59
  • current version is 1.8.15 maybe you can check in 1.8.15 as well (I expect that it will work there as well) – albert Jun 22 '19 at 10:34