Bug 1628 – Ddoc produces invalid documentation for --- blocks

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2007-10-30T17:28:00Z
Last change time
2014-02-24T15:32:18Z
Keywords
ddoc, patch
Assigned to
nobody
Creator
onlystupidspamhere

Attachments

IDFilenameSummaryContent-TypeSize
589patch1628and122.patchPatch against DMD2.042 svn 416text/plain1416

Comments

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.
Comment #3 by bugzilla — 2010-04-04T12:31:50Z
changeset 431
Comment #4 by clugdbug — 2010-04-09T19:08:05Z
Fixed DMD1.058 and DMD2.043.