You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experimenting with Markdown for documentation (Markdown depends on indentation).
I've noticed one more space than needed (?) is being stripped by unDecorateComment() in /** comment lines that didn't "start" with a non-space character.
I don't know if this is an off-by-one error or a peculiarity of the D spec.
It can be fixed by changing <= into < here in std.d.lexer.undecorateComment() (line 1920):
for (size_t s = 0; (i < j) && (s <= whitespaceToSkip)
&& (comment[i] == ' ' || comment[i] == '\t');)
Example of the behavoir:
/** Merge two entity prototypes; components from over override components from base. The
* returned prototype is not locked/trimmed.
*
...
*
* 1. This is a list item with two paragraphs. Lorem ipsum dolor
* sit amet, consectetuer adipiscing elit. Aliquam hendrerit
* mi posuere lectus.
*/
the second part would turn into:
1. This is a list item with two paragraphs. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit. Aliquam hendrerit
Similarly,
* A
* B
* A
would turn into:
A
B
A
The text was updated successfully, but these errors were encountered:
kiith-sa
added a commit
to kiith-sa/libdparse
that referenced
this issue
Dec 25, 2014
I'm experimenting with Markdown for documentation (Markdown depends on indentation).
I've noticed one more space than needed (?) is being stripped by
unDecorateComment()
in/**
comment lines that didn't "start" with a non-space character.I don't know if this is an off-by-one error or a peculiarity of the D spec.
It can be fixed by changing
<=
into<
here instd.d.lexer.undecorateComment()
(line1920
):Example of the behavoir:
the second part would turn into:
Similarly,
would turn into:
The text was updated successfully, but these errors were encountered: