How to add line break to Swashbuckle documentation?

Attila Szasz picture Attila Szasz · Sep 14, 2015 · Viewed 9k times · Source

I'm generating documentation for an api implemented in Web Api 2 using swagger/swashbuckle.

The only xml documentation tags recognized are the <summary>, <remarks> and <param>.
This means I cannot use <para> tag to format my text in new lines or paragraphs, everything is generated as a continuous long paragraph in the Implementation Notes entry of the docs.

Is there any way to do this?

Answer

Attila Szasz picture Attila Szasz · Sep 14, 2015

I found that you can just add <br /> tags to the comments to achieve this.
Adding:

/// <br /> 

will cause a line break in the generated documentation.