Unchase.Swashbuckle.AspNetCore.Extensions icon indicating copy to clipboard operation
Unchase.Swashbuckle.AspNetCore.Extensions copied to clipboard

Line Break is OS dependent (\r\n vs \n)

Open Lazzaretti opened this issue 3 years ago • 0 comments

The line break in the description is OS specific with Envirinment.NewLine, which leads to different results depending on the OS.

Windows:

"description": "The description of the enum.\r\n\r\n0 = None"

Linux/Mac:

"description": "The description of the enum.\n\n0 = None"

Suggestion: Always use the same newline ending for all OS, e.g., always \n.

Lazzaretti avatar Mar 23 '22 16:03 Lazzaretti