[Issue 14413] Spurious newline in ddoc JSON output for multiple successive line doc comments

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Apr 7 07:16:58 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14413

--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Sönke Ludwig from comment #0)
> ---
> /// This function is here to aid in making your
> /// software do cool stuff.
> void foo() {}
> ---

It's equivalent with:

---
/**
This function is here to aid in making your

software do cool stuff.
*/
void bar() {}
---

DMD lexer concatenates the continuous ddoc line comments like paragraphs. The
blank line is inserted to separate two one-liner paragraphs.

--


More information about the Digitalmars-d-bugs mailing list