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

Diff for /mandoc/man_term.c between version 1.117 and 1.118

version 1.117, 2011/09/19 22:36:16 version 1.118, 2011/09/20 09:02:23
Line 1007  print_man_head(struct termp *p, const void *arg)
Line 1007  print_man_head(struct termp *p, const void *arg)
          * point we did so here.           * point we did so here.
          */           */
   
           p->offset = 0;
         p->rmargin = p->maxrmargin;          p->rmargin = p->maxrmargin;
   
         p->offset = 0;  
         buf[0] = title[0] = '\0';          buf[0] = title[0] = '\0';
   
         if (m->vol)          if (m->vol)
Line 1019  print_man_head(struct termp *p, const void *arg)
Line 1019  print_man_head(struct termp *p, const void *arg)
         snprintf(title, BUFSIZ, "%s(%s)", m->title, m->msec);          snprintf(title, BUFSIZ, "%s(%s)", m->title, m->msec);
         titlen = term_strlen(p, title);          titlen = term_strlen(p, title);
   
           p->flags |= TERMP_NOBREAK | TERMP_NOSPACE;
         p->offset = 0;          p->offset = 0;
         p->rmargin = 2 * (titlen+1) + buflen < p->maxrmargin ?          p->rmargin = 2 * (titlen+1) + buflen < p->maxrmargin ?
             (p->maxrmargin -              (p->maxrmargin -
              term_strlen(p, buf) + term_len(p, 1)) / 2 :               term_strlen(p, buf) + term_len(p, 1)) / 2 :
             p->maxrmargin - buflen;              p->maxrmargin - buflen;
         p->flags |= TERMP_NOBREAK | TERMP_NOSPACE;  
   
         term_word(p, title);          term_word(p, title);
         term_flushln(p);          term_flushln(p);
Line 1046  print_man_head(struct termp *p, const void *arg)
Line 1046  print_man_head(struct termp *p, const void *arg)
                 term_flushln(p);                  term_flushln(p);
         }          }
   
         p->rmargin = p->maxrmargin;  
         p->offset = 0;  
         p->flags &= ~TERMP_NOSPACE;          p->flags &= ~TERMP_NOSPACE;
           p->offset = 0;
           p->rmargin = p->maxrmargin;
   
         /*          /*
          * Groff likes to have some leading spaces before content.  Well           * Groff likes to have some leading spaces before content.  Well

Legend:
Removed from v.1.117  
changed lines
  Added in v.1.118

CVSweb