[Issue 15460] Ddoc: merge the opening comment "<!-- Generated by Ddoc from filename.dd -->" into the default definition of DDOC
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Dec 18 08:29:33 PST 2015
https://issues.dlang.org/show_bug.cgi?id=15460
--- Comment #2 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to Adam D. Ruppe from comment #1)
> This is the code that does it:
>
> buf.printf("$(DDOC_COMMENT Generated by Ddoc from %s)\n", m.srcfile.
> toChars());
>
>
> You could just define `DDOC_COMMENT=` to strip all comments from the
> generated code, since plain text doesn't have a comment facility anyway...
Just do it!
--
More information about the Digitalmars-d-bugs
mailing list