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

Diff for /mandoc/term.c between version 1.278 and 1.279

version 1.278, 2019/01/03 19:59:55 version 1.279, 2019/01/04 03:21:02
Line 135  term_flushln(struct termp *p)
Line 135  term_flushln(struct termp *p)
                 /*                  /*
                  * Figure out how much text will fit in the field.                   * Figure out how much text will fit in the field.
                  * If there is whitespace only, print nothing.                   * If there is whitespace only, print nothing.
                  * Otherwise, print the field content.  
                  */                   */
   
                 term_fill(p, &nbr, &vbr, vtarget);                  term_fill(p, &nbr, &vbr, vtarget);
                 if (nbr == 0)                  if (nbr == 0)
                         break;                          break;
   
                   /*
                    * With the CENTER or RIGHT flag, increase the indentation
                    * to center the text between the left and right margins
                    * or to adjust it to the right margin, respectively.
                    */
   
                   if (vbr < vtarget) {
                           if (p->flags & TERMP_CENTER)
                                   vbl += (vtarget - vbr) / 2;
                           else if (p->flags & TERMP_RIGHT)
                                   vbl += vtarget - vbr;
                   }
   
                   /* Finally, print the field content. */
   
                 term_field(p, vbl, nbr, vbr, vtarget);                  term_field(p, vbl, nbr, vbr, vtarget);
   

Legend:
Removed from v.1.278  
changed lines
  Added in v.1.279

CVSweb