[Issue 1890] New: DDOC removes leading space in D_CODE macro

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 3 09:37:34 PST 2008


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

           Summary: DDOC removes leading space in D_CODE macro
           Product: D
           Version: 2.011
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: ddparnell at bigpond.com


The following text ...
$(D_CODE
  aaa
  bbb
  ccc
)

generates ...

<pre> aaa
  bbb
  ccc
 </pre>

Notice:
(A) That the two spaces before "aaa" have been rendered with only one space.
(B) One space preceeds the </pre>. 

Because the definition of D_CODE is <pre>$0</pre> I expected this instead to be
generated ...

<pre>
  aaa
  bbb
  ccc
</pre>


-- 



More information about the Digitalmars-d-bugs mailing list