July 27, 2014
https://issues.dlang.org/show_bug.cgi?id=13212

          Issue ID: 13212
           Summary: Windows line endings handled incorrectly by ddoc
                    macros
           Product: D
           Version: unspecified
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: minor
          Priority: P1
         Component: DMD
          Assignee: nobody@puremagic.com
          Reporter: alix.pexton@gmail.com

In a file with windows line endings (CR; + LF;) a macro declaration that is followed by a blank line will have a line ending included in its expansion. Saving the file with single-char line endings "fixes" the expansion, as does removing blank lines between/after macro declarations.

--