[BACK]Return to paragraph.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/paragraph.c between version 1.19 and 1.20

version 1.19, 2009/06/04 02:23:37 version 1.20, 2011/11/28 05:04:17
Line 190 
Line 190 
                         /*                          /*
                          * if at end of line or at doublespace and previous                           * if at end of line or at doublespace and previous
                          * character was one of '.','?','!' doublespace here.                           * character was one of '.','?','!' doublespace here.
                            * behave the same way if a ')' is preceded by a
                            * [.?!] and followed by a doublespace.
                          */                           */
                         if ((eolflag ||                          if ((eolflag ||
                             curwp->w_doto == llength(curwp->w_dotp) ||                              curwp->w_doto == llength(curwp->w_dotp) ||
                             (c = lgetc(curwp->w_dotp, curwp->w_doto)) == ' '                              (c = lgetc(curwp->w_dotp, curwp->w_doto)) == ' '
                             || c == '\t') && ISEOSP(wbuf[wordlen - 1]) &&                              || c == '\t') && (ISEOSP(wbuf[wordlen - 1]) ||
                               (wbuf[wordlen - 1] == ')' &&
                               ISEOSP(wbuf[wordlen - 2]))) &&
                             wordlen < MAXWORD - 1)                              wordlen < MAXWORD - 1)
                                 wbuf[wordlen++] = ' ';                                  wbuf[wordlen++] = ' ';
   

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20