www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15474] New: Ddoc - defining an empty macro at the end of a

https://issues.dlang.org/show_bug.cgi?id=15474

          Issue ID: 15474
           Summary: Ddoc - defining an empty macro at the end of a Macros
                    section does not work
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: destructionator gmail.com

/**
    Test

    test2

    test3

    Macros:
        DDOC=$(BODY)
    DDOC_BLANKLINE=
*/
module t2;



Generates:

<!-- Generated by Ddoc from t2.d -->
Test
<br><br>
test2
<br><br>

        test3

<br><br>


Those blank lines are still there. Swap the order of definition of those two
macros:


/**
    Test

    test2

    test3

    Macros:
    DDOC_BLANKLINE=
        DDOC=$(BODY)
*/
module t2;



Hey, look, blank line = nothing respected now!

<!-- Generated by Ddoc from t2.d -->
Test
<br><br>
test2


        test3

<br><br>



Notice that there isn't one between test2 and test3 anymore.

--
Dec 24 2015