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

Diff for /src/usr.bin/mandoc/roff.c between version 1.69 and 1.70

version 1.69, 2014/03/07 17:57:28 version 1.70, 2014/03/07 18:37:32
Line 1078 
Line 1078 
         /* Always check for the closing delimiter `\}'. */          /* Always check for the closing delimiter `\}'. */
   
         while (NULL != (ep = strchr(ep, '\\'))) {          while (NULL != (ep = strchr(ep, '\\'))) {
                 if ('}' != *(++ep))                  if ('}' == *(++ep)) {
                         continue;                          *ep = '&';
                 *ep = '&';                          roff_ccond(r, ln, ep - *bufp - 1);
                 roff_ccond(r, ln, pos);                  }
                   ++ep;
         }          }
         return(ROFFRULE_DENY == rr ? ROFF_IGN : ROFF_CONT);          return(ROFFRULE_DENY == rr ? ROFF_IGN : ROFF_CONT);
 }  }
Line 1096 
Line 1097 
         rr = r->last->rule;          rr = r->last->rule;
         roffnode_cleanscope(r);          roffnode_cleanscope(r);
   
         ep = &(*bufp)[pos];          ep = *bufp + pos;
         for ( ; NULL != (ep = strchr(ep, '\\')); ep++) {          while (NULL != (ep = strchr(ep, '\\'))) {
                 ep++;                  if ('}' == *(++ep)) {
                 if ('}' != *ep)                          *ep = '&';
                         continue;                          roff_ccond(r, ln, ep - *bufp - 1);
                 *ep = '&';                  }
                 roff_ccond(r, ln, pos);                  ++ep;
         }          }
         return(ROFFRULE_DENY == rr ? ROFF_IGN : ROFF_CONT);          return(ROFFRULE_DENY == rr ? ROFF_IGN : ROFF_CONT);
 }  }

Legend:
Removed from v.1.69  
changed lines
  Added in v.1.70