[Issue 122] DDoc newline behaviour produces suboptimal results

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 15 02:08:55 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=122



--- Comment #4 from Don <clugdbug at yahoo.com.au> 2010-03-15 02:08:52 PDT ---
Sorry, that patch came out wrong. The first line belongs further up in the
function.

Around line 965:
     {
     p = skipwhitespace(p);
     pstart = p;
+    pend = p;

     /* Find end of section, which is ended by one of:
      *    'identifier:' (but not inside a code section)


And around line 1007:
        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