[BACK]Return to roff.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/roff.c between version 1.196 and 1.197

version 1.196, 2014/03/07 18:30:11 version 1.197, 2014/03/07 18:37:37
Line 1082  roff_cond_sub(ROFF_ARGS)
Line 1082  roff_cond_sub(ROFF_ARGS)
         /* 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 1100  roff_cond_text(ROFF_ARGS)
Line 1101  roff_cond_text(ROFF_ARGS)
         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.196  
changed lines
  Added in v.1.197

CVSweb