Thread overview
[Issue 1628] New: Ddoc produces invalid documentation for --- blocks
Oct 30, 2007
d-bugmail
Mar 15, 2010
Don
Mar 15, 2010
Don
Apr 04, 2010
Walter Bright
Apr 10, 2010
Don
October 30, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1628

           Summary: Ddoc produces invalid documentation for --- blocks
           Product: D
           Version: 1.022
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: onlystupidspamhere@yahoo.se


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.


-- 

March 15, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1628



--- Comment #1 from Don <clugdbug@yahoo.com.au> 2010-03-15 12:55:16 PDT ---
Created an attachment (id=589)
Patch against DMD2.042 svn 416

Also fixes bug 122.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 15, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1628



--- Comment #2 from Don <clugdbug@yahoo.com.au> 2010-03-15 12:57:45 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 04, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1628


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2010-04-04 12:31:50 PDT ---
changeset 431

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 10, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1628


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #4 from Don <clugdbug@yahoo.com.au> 2010-04-09 19:08:05 PDT ---
Fixed DMD1.058 and DMD2.043.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------