[Issue 3957] New: [DDOC] Wrong html with [0, 10) in the comment

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 13 14:45:00 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3957

           Summary: [DDOC] Wrong html with [0, 10) in the comment
           Product: D
           Version: 2.041
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2010-03-13 14:44:58 PST ---
This D2 program:

/// Return a random number in [0, 10)
void foo() {}
void main() {}


When dmd is asked to generate the html of documentation it generates:


<html><head>
    <META http-equiv="content-type" content="text/html; charset=utf-8">
    <title>bug1</title>
    </head><body>
    <h1>bug1</h1>
    <!-- Generated by Ddoc from bug1.d -->
<br><br>
<dl><dt><big>void <u>foo</u>();
</big></dt>
<dd>Return a random number in [0, 10<br><br>

</dd>
</dl>
)

    <hr><small>Page generated by <a
href="http://www.digitalmars.com/d/2.0/ddoc.html">Ddoc</a>. </small>
    </body></html>



You can see the closed ) is wrong, too much below.
Note: [0, 10) in Europe means an interval open on the right.

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


More information about the Digitalmars-d-bugs mailing list