[Issue 7715] New: DDoc eats $1, $2, $3 etc. inside d_code section
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Mar 15 08:56:55 PDT 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7715
           Summary: DDoc eats $1, $2, $3 etc. inside d_code section
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: dmitry.olsh at gmail.com
--- Comment #0 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2012-03-15 08:57:06 PDT ---
Example:
/**
$1 $2
---
string s = "$1$2 $ $4";
---
*/
void foo(){}
Produces this (note that a lone $ was keept intact and $ doesn't work
inside pre block):
<html><head>
        <META http-equiv="content-type" content="text/html; charset=utf-8">
        <title>test</title>
        </head><body>
        <h1>test</h1>
        <!-- Generated by Ddoc from test.d -->
<br><br>
<dl><dt><big>void <u>foo</u>();
</big></dt>
<dd>$1 $2
<pre class="d_code">string s = <font color=red>" $ $4"</font>;
</pre>
<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>
Marking as critical because it destroys the replace format string in regex
article. But maybe, just maybe, I'm missing something.
-- 
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