[Issue 14413] New: Spurious newline in ddoc JSON output for multiple successive line doc comments
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Apr 5 09:56:30 PDT 2015
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 at puremagic.com
Reporter: sludwig at 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"
}
---
--
More information about the Digitalmars-d-bugs
mailing list