Comment #0 by onlystupidspamhere — 2007-10-30T17:28:06Z
Adding newlines between ---s produce odd output. Here's a minimal example:
<code>
/**----
----*/class C{}
</code>
produces
<output>
mymodule
$(DDOC_MODULE_MEMBERS
class F;
$(DDOC_DECL_DD
</output>
Removing the line feeds between ---'s or filling the empty line with content hides the errors.
Comment #1 by clugdbug — 2010-03-15T12:55:16Z
Created attachment 589
Patch against DMD2.042 svn 416
Also fixes bug 122.
Comment #2 by clugdbug — 2010-03-15T12:57:45Z
This is pretty simple, we just need to cope with the case where the code section is empty.
I also generate an error for cases like:
/**
this code doesn't have a proper ending
---
int x;
*/
which I think is better than generating an invalid html file.