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

Diff for /mandoc/Attic/mdocterm.c between version 1.9 and 1.11

version 1.9, 2009/02/25 12:09:20 version 1.11, 2009/02/25 13:30:53
Line 1 
Line 1 
         /* $Id$ */  /* $Id$ */
 /*  /*
  * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>   * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
  *   *
Line 200  flushln(struct termp *p)
Line 200  flushln(struct termp *p)
          */           */
   
         if (p->flags & TERMP_NOBREAK) {          if (p->flags & TERMP_NOBREAK) {
                 for ( ; vis <= maxvis; vis++)                  for ( ; vis < maxvis; vis++)
                         putchar(' ');                          putchar(' ');
         } else          } else
                 putchar('\n');                  putchar('\n');
Line 221  newln(struct termp *p)
Line 221  newln(struct termp *p)
         if (0 == p->col)          if (0 == p->col)
                 return;                  return;
         flushln(p);          flushln(p);
           p->flags &= ~TERMP_NOLPAD;
 }  }
   
   
Line 416  body(struct termp *p, const struct mdoc_meta *meta,
Line 417  body(struct termp *p, const struct mdoc_meta *meta,
   
         dochild = 1;          dochild = 1;
         pair.type = 0;          pair.type = 0;
           pair.offset = pair.rmargin = 0;
           pair.flag = 0;
   
         if (MDOC_TEXT != node->type) {          if (MDOC_TEXT != node->type) {
                 if (termacts[node->tok].pre)                  if (termacts[node->tok].pre)
Line 426  body(struct termp *p, const struct mdoc_meta *meta,
Line 429  body(struct termp *p, const struct mdoc_meta *meta,
   
         /* Children. */          /* Children. */
   
         switch (pair.type) {          if (TERMPAIR_FLAG & pair.type)
         case (TERMPAIR_FLAG):                  p->flags |= pair.flag;
                 p->flags |= pair.data.flag;  
                 break;  
         default:  
                 break;  
         }  
   
         if (dochild && node->child)          if (dochild && node->child)
                 body(p, meta, node->child);                  body(p, meta, node->child);
   
         switch (pair.type) {          if (TERMPAIR_FLAG & pair.type)
         case (TERMPAIR_FLAG):                  p->flags &= ~pair.flag;
                 p->flags &= ~pair.data.flag;  
                 break;  
         default:  
                 break;  
         }  
   
         /* Post-processing. */          /* Post-processing. */
   

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.11

CVSweb