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

Diff for /mandoc/mdoc_term.c between version 1.321 and 1.322

version 1.321, 2015/07/25 14:02:06 version 1.322, 2015/07/25 14:18:04
Line 251  static const struct termact termacts[MDOC_MAX] = {
Line 251  static const struct termact termacts[MDOC_MAX] = {
         { termp_ll_pre, NULL }, /* ll */          { termp_ll_pre, NULL }, /* ll */
 };  };
   
   static  int      fn_prio;
   
 void  void
 terminal_mdoc(void *arg, const struct roff_man *mdoc)  terminal_mdoc(void *arg, const struct roff_man *mdoc)
Line 1364  termp_sh_pre(DECL_ARGS)
Line 1365  termp_sh_pre(DECL_ARGS)
                  * when the previous section was empty.                   * when the previous section was empty.
                  */                   */
                 if (n->prev == NULL ||                  if (n->prev == NULL ||
                     MDOC_Sh != n->prev->tok ||                      n->prev->tok != MDOC_Sh ||
                     (n->prev->body != NULL &&                      (n->prev->body != NULL &&
                      n->prev->body->child != NULL))                       n->prev->body->child != NULL))
                         term_vspace(p);                          term_vspace(p);
Line 1374  termp_sh_pre(DECL_ARGS)
Line 1375  termp_sh_pre(DECL_ARGS)
                 break;                  break;
         case ROFFT_BODY:          case ROFFT_BODY:
                 p->offset = term_len(p, p->defindent);                  p->offset = term_len(p, p->defindent);
                 if (SEC_AUTHORS == n->sec)                  switch (n->sec) {
                   case SEC_DESCRIPTION:
                           fn_prio = 0;
                           break;
                   case SEC_AUTHORS:
                         p->flags &= ~(TERMP_SPLIT|TERMP_NOSPLIT);                          p->flags &= ~(TERMP_SPLIT|TERMP_NOSPLIT);
                           break;
                   default:
                           break;
                   }
                 break;                  break;
         default:          default:
                 break;                  break;
Line 1471  termp_fn_pre(DECL_ARGS)
Line 1480  termp_fn_pre(DECL_ARGS)
         term_word(p, n->string);          term_word(p, n->string);
         term_fontpop(p);          term_fontpop(p);
   
           if (n->sec == SEC_DESCRIPTION) {
                   if ( ! tag_get(n->string, 0, ++fn_prio))
                           tag_put(n->string, 0, fn_prio, p->line);
           }
   
         if (pretty) {          if (pretty) {
                 term_flushln(p);                  term_flushln(p);
                 p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND | TERMP_HANG);                  p->flags &= ~(TERMP_NOBREAK | TERMP_BRIND | TERMP_HANG);
Line 1823  termp_sp_pre(DECL_ARGS)
Line 1837  termp_sp_pre(DECL_ARGS)
                 break;                  break;
         default:          default:
                 len = 1;                  len = 1;
                   fn_prio = 0;
                 break;                  break;
         }          }
   

Legend:
Removed from v.1.321  
changed lines
  Added in v.1.322

CVSweb