[Issue 1117] New: ddoc generates corrupted docs if code examples contain attributes with colons

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 9 11:30:22 PDT 2007


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

           Summary: ddoc generates corrupted docs if code examples contain
                    attributes with colons
           Product: D
           Version: 1.010
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: samukha at voliacable.com


Corrupted documentation is generated by ddoc for code examples having
attributes with colons:

/**
Example:
---
private:
    int i = 0;
---
*/
void main()
{
}

Generated html:
<html><head>
        <META http-equiv="content-type" content="text/html; charset=utf-8">
        <title>hello</title>
        </head><body>
        <h1>hello</h1>
        <!-- Generated by Ddoc from hello.d -->
<br><br>
$(DDOC_MODULE_MEMBERS 
<dt><big>void <u>main</u>();

</big></dt>
$(DDOC_DECL_DD <b>Example:</b><br>
<pre class="d_code"></pre>
<b>private:</b><br>
int i = 0;
<pre class="d_code"></pre>
<br><br>
<br><br>


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

        </body></html>


-- 



More information about the Digitalmars-d-bugs mailing list