www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14413] New: Spurious newline in ddoc JSON output for multiple

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

          Issue ID: 14413
           Summary: Spurious newline in ddoc JSON output for multiple
                    successive line doc comments
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: sludwig outerproduct.org

The following compiled with "dmd -X -D" results in an additional "\n" being
inserted between the two doc lines.

---
/// This function is here to aid in making your
/// software do cool stuff.
void foo() {}
---

JSON:
---
{
    "kind": "module",
    "file": "issue58_linedoc\\test.d",
    "members": [
        {
            "kind": "function",
            "line": 5,
            "deco": "FZv",
            "endchar": 13,
            "char": 6,
            "name": "foo",
            "comment": "This function is here to aid in making your\n\nsoftware
do cool stuff.\n",
            "endline": 5
        }
    ],
    "name": "test"
}
---

--
Apr 05 2015