[Issue 122] DDoc newline behaviour produces suboptimal results
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 15 00:57:18 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=122
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
--- Comment #3 from Don <clugdbug at yahoo.com.au> 2010-03-15 00:57:17 PDT ---
PATCH: Don't include trailing newlines.
doc.c line 1007.
Value of 'pend' shouldn't increase unless there's a non-\n
character.
+ pend = p;
while (1)
{
if (!*p)
- { pend = p;
goto L1;
- }
if (*p == '\n')
{ p++;
if (*p == '\n' && !summary && !namelen)
{
pend = p;
p++;
goto L1;
}
break;
}
p++;
+ pend = p;
}
p = skipwhitespace(p);
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list