[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.327 and 1.328

version 1.327, 2015/09/26 00:54:04 version 1.328, 2015/10/06 18:32:19
Line 535  a2width(const struct termp *p, const char *v)
Line 535  a2width(const struct termp *p, const char *v)
                 SCALE_HS_INIT(&su, term_strlen(p, v));                  SCALE_HS_INIT(&su, term_strlen(p, v));
                 su.scale /= term_strlen(p, "0");                  su.scale /= term_strlen(p, "0");
         }          }
         return(term_hspan(p, &su) / 24);          return term_hspan(p, &su) / 24;
 }  }
   
 /*  /*
Line 599  termp_ll_pre(DECL_ARGS)
Line 599  termp_ll_pre(DECL_ARGS)
 {  {
   
         term_setwidth(p, n->nchild ? n->child->string : NULL);          term_setwidth(p, n->nchild ? n->child->string : NULL);
         return(0);          return 0;
 }  }
   
 static int  static int
Line 613  termp_it_pre(DECL_ARGS)
Line 613  termp_it_pre(DECL_ARGS)
   
         if (n->type == ROFFT_BLOCK) {          if (n->type == ROFFT_BLOCK) {
                 print_bvspace(p, n->parent->parent, n);                  print_bvspace(p, n->parent->parent, n);
                 return(1);                  return 1;
         }          }
   
         bl = n->parent->parent->parent;          bl = n->parent->parent->parent;
Line 927  termp_it_pre(DECL_ARGS)
Line 927  termp_it_pre(DECL_ARGS)
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case LIST_enum:          case LIST_enum:
                 if (n->type == ROFFT_HEAD)                  if (n->type == ROFFT_HEAD)
                         return(0);                          return 0;
                 break;                  break;
         case LIST_column:          case LIST_column:
                 if (n->type == ROFFT_HEAD)                  if (n->type == ROFFT_HEAD)
                         return(0);                          return 0;
                 break;                  break;
         default:          default:
                 break;                  break;
         }          }
   
         return(1);          return 1;
 }  }
   
 static void  static void
Line 986  termp_nm_pre(DECL_ARGS)
Line 986  termp_nm_pre(DECL_ARGS)
   
         if (n->type == ROFFT_BLOCK) {          if (n->type == ROFFT_BLOCK) {
                 p->flags |= TERMP_PREKEEP;                  p->flags |= TERMP_PREKEEP;
                 return(1);                  return 1;
         }          }
   
         if (n->type == ROFFT_BODY) {          if (n->type == ROFFT_BODY) {
                 if (NULL == n->child)                  if (NULL == n->child)
                         return(0);                          return 0;
                 p->flags |= TERMP_NOSPACE;                  p->flags |= TERMP_NOSPACE;
                 cp = NULL;                  cp = NULL;
                 if (n->prev->child != NULL)                  if (n->prev->child != NULL)
Line 1002  termp_nm_pre(DECL_ARGS)
Line 1002  termp_nm_pre(DECL_ARGS)
                         p->offset += term_len(p, 6);                          p->offset += term_len(p, 6);
                 else                  else
                         p->offset += term_len(p, 1) + term_strlen(p, cp);                          p->offset += term_len(p, 1) + term_strlen(p, cp);
                 return(1);                  return 1;
         }          }
   
         if (NULL == n->child && NULL == meta->name)          if (NULL == n->child && NULL == meta->name)
                 return(0);                  return 0;
   
         if (n->type == ROFFT_HEAD)          if (n->type == ROFFT_HEAD)
                 synopsis_pre(p, n->parent);                  synopsis_pre(p, n->parent);
Line 1031  termp_nm_pre(DECL_ARGS)
Line 1031  termp_nm_pre(DECL_ARGS)
         term_fontpush(p, TERMFONT_BOLD);          term_fontpush(p, TERMFONT_BOLD);
         if (NULL == n->child)          if (NULL == n->child)
                 term_word(p, meta->name);                  term_word(p, meta->name);
         return(1);          return 1;
 }  }
   
 static void  static void
Line 1063  termp_fl_pre(DECL_ARGS)
Line 1063  termp_fl_pre(DECL_ARGS)
              n->next->flags & MDOC_LINE)))               n->next->flags & MDOC_LINE)))
                 p->flags |= TERMP_NOSPACE;                  p->flags |= TERMP_NOSPACE;
   
         return(1);          return 1;
 }  }
   
 static int  static int
Line 1074  termp__a_pre(DECL_ARGS)
Line 1074  termp__a_pre(DECL_ARGS)
                 if (NULL == n->next || MDOC__A != n->next->tok)                  if (NULL == n->next || MDOC__A != n->next->tok)
                         term_word(p, "and");                          term_word(p, "and");
   
         return(1);          return 1;
 }  }
   
 static int  static int
Line 1084  termp_an_pre(DECL_ARGS)
Line 1084  termp_an_pre(DECL_ARGS)
         if (n->norm->An.auth == AUTH_split) {          if (n->norm->An.auth == AUTH_split) {
                 p->flags &= ~TERMP_NOSPLIT;                  p->flags &= ~TERMP_NOSPLIT;
                 p->flags |= TERMP_SPLIT;                  p->flags |= TERMP_SPLIT;
                 return(0);                  return 0;
         }          }
         if (n->norm->An.auth == AUTH_nosplit) {          if (n->norm->An.auth == AUTH_nosplit) {
                 p->flags &= ~TERMP_SPLIT;                  p->flags &= ~TERMP_SPLIT;
                 p->flags |= TERMP_NOSPLIT;                  p->flags |= TERMP_NOSPLIT;
                 return(0);                  return 0;
         }          }
   
         if (p->flags & TERMP_SPLIT)          if (p->flags & TERMP_SPLIT)
Line 1098  termp_an_pre(DECL_ARGS)
Line 1098  termp_an_pre(DECL_ARGS)
         if (n->sec == SEC_AUTHORS && ! (p->flags & TERMP_NOSPLIT))          if (n->sec == SEC_AUTHORS && ! (p->flags & TERMP_NOSPLIT))
                 p->flags |= TERMP_SPLIT;                  p->flags |= TERMP_SPLIT;
   
         return(1);          return 1;
 }  }
   
 static int  static int
Line 1107  termp_ns_pre(DECL_ARGS)
Line 1107  termp_ns_pre(DECL_ARGS)
   
         if ( ! (MDOC_LINE & n->flags))          if ( ! (MDOC_LINE & n->flags))
                 p->flags |= TERMP_NOSPACE;                  p->flags |= TERMP_NOSPACE;
         return(1);          return 1;
 }  }
   
 static int  static int
Line 1115  termp_rs_pre(DECL_ARGS)
Line 1115  termp_rs_pre(DECL_ARGS)
 {  {
   
         if (SEC_SEE_ALSO != n->sec)          if (SEC_SEE_ALSO != n->sec)
                 return(1);                  return 1;
         if (n->type == ROFFT_BLOCK && n->prev != NULL)          if (n->type == ROFFT_BLOCK && n->prev != NULL)
                 term_vspace(p);                  term_vspace(p);
         return(1);          return 1;
 }  }
   
 static int  static int
Line 1171  termp_rv_pre(DECL_ARGS)
Line 1171  termp_rv_pre(DECL_ARGS)
         term_word(p, "is set to indicate the error.");          term_word(p, "is set to indicate the error.");
         p->flags |= TERMP_SENTENCE;          p->flags |= TERMP_SENTENCE;
   
         return(0);          return 0;
 }  }
   
 static int  static int
Line 1205  termp_ex_pre(DECL_ARGS)
Line 1205  termp_ex_pre(DECL_ARGS)
         term_word(p, "on success, and\\~>0 if an error occurs.");          term_word(p, "on success, and\\~>0 if an error occurs.");
   
         p->flags |= TERMP_SENTENCE;          p->flags |= TERMP_SENTENCE;
         return(0);          return 0;
 }  }
   
 static int  static int
Line 1214  termp_nd_pre(DECL_ARGS)
Line 1214  termp_nd_pre(DECL_ARGS)
   
         if (n->type == ROFFT_BODY)          if (n->type == ROFFT_BODY)
                 term_word(p, "\\(en");                  term_word(p, "\\(en");
         return(1);          return 1;
 }  }
   
 static int  static int
 termp_bl_pre(DECL_ARGS)  termp_bl_pre(DECL_ARGS)
 {  {
   
         return(n->type != ROFFT_HEAD);          return n->type != ROFFT_HEAD;
 }  }
   
 static void  static void
Line 1237  termp_xr_pre(DECL_ARGS)
Line 1237  termp_xr_pre(DECL_ARGS)
 {  {
   
         if (NULL == (n = n->child))          if (NULL == (n = n->child))
                 return(0);                  return 0;
   
         assert(n->type == ROFFT_TEXT);          assert(n->type == ROFFT_TEXT);
         term_word(p, n->string);          term_word(p, n->string);
   
         if (NULL == (n = n->next))          if (NULL == (n = n->next))
                 return(0);                  return 0;
   
         p->flags |= TERMP_NOSPACE;          p->flags |= TERMP_NOSPACE;
         term_word(p, "(");          term_word(p, "(");
Line 1255  termp_xr_pre(DECL_ARGS)
Line 1255  termp_xr_pre(DECL_ARGS)
         p->flags |= TERMP_NOSPACE;          p->flags |= TERMP_NOSPACE;
         term_word(p, ")");          term_word(p, ")");
   
         return(0);          return 0;
 }  }
   
 /*  /*
Line 1321  termp_vt_pre(DECL_ARGS)
Line 1321  termp_vt_pre(DECL_ARGS)
   
         if (n->type == ROFFT_ELEM) {          if (n->type == ROFFT_ELEM) {
                 synopsis_pre(p, n);                  synopsis_pre(p, n);
                 return(termp_under_pre(p, pair, meta, n));                  return termp_under_pre(p, pair, meta, n);
         } else if (n->type == ROFFT_BLOCK) {          } else if (n->type == ROFFT_BLOCK) {
                 synopsis_pre(p, n);                  synopsis_pre(p, n);
                 return(1);                  return 1;
         } else if (n->type == ROFFT_HEAD)          } else if (n->type == ROFFT_HEAD)
                 return(0);                  return 0;
   
         return(termp_under_pre(p, pair, meta, n));          return termp_under_pre(p, pair, meta, n);
 }  }
   
 static int  static int
Line 1337  termp_bold_pre(DECL_ARGS)
Line 1337  termp_bold_pre(DECL_ARGS)
   
         termp_tag_pre(p, pair, meta, n);          termp_tag_pre(p, pair, meta, n);
         term_fontpush(p, TERMFONT_BOLD);          term_fontpush(p, TERMFONT_BOLD);
         return(1);          return 1;
 }  }
   
 static int  static int
Line 1345  termp_fd_pre(DECL_ARGS)
Line 1345  termp_fd_pre(DECL_ARGS)
 {  {
   
         synopsis_pre(p, n);          synopsis_pre(p, n);
         return(termp_bold_pre(p, pair, meta, n));          return termp_bold_pre(p, pair, meta, n);
 }  }
   
 static void  static void
Line 1390  termp_sh_pre(DECL_ARGS)
Line 1390  termp_sh_pre(DECL_ARGS)
         default:          default:
                 break;                  break;
         }          }
         return(1);          return 1;
 }  }
   
 static void  static void
Line 1416  termp_bt_pre(DECL_ARGS)
Line 1416  termp_bt_pre(DECL_ARGS)
   
         term_word(p, "is currently in beta test.");          term_word(p, "is currently in beta test.");
         p->flags |= TERMP_SENTENCE;          p->flags |= TERMP_SENTENCE;
         return(0);          return 0;
 }  }
   
 static void  static void
Line 1433  termp_ud_pre(DECL_ARGS)
Line 1433  termp_ud_pre(DECL_ARGS)
   
         term_word(p, "currently under development.");          term_word(p, "currently under development.");
         p->flags |= TERMP_SENTENCE;          p->flags |= TERMP_SENTENCE;
         return(0);          return 0;
 }  }
   
 static int  static int
Line 1441  termp_d1_pre(DECL_ARGS)
Line 1441  termp_d1_pre(DECL_ARGS)
 {  {
   
         if (n->type != ROFFT_BLOCK)          if (n->type != ROFFT_BLOCK)
                 return(1);                  return 1;
         term_newln(p);          term_newln(p);
         p->offset += term_len(p, p->defindent + 1);          p->offset += term_len(p, p->defindent + 1);
         return(1);          return 1;
 }  }
   
 static int  static int
Line 1454  termp_ft_pre(DECL_ARGS)
Line 1454  termp_ft_pre(DECL_ARGS)
         /* NB: MDOC_LINE does not effect this! */          /* NB: MDOC_LINE does not effect this! */
         synopsis_pre(p, n);          synopsis_pre(p, n);
         term_fontpush(p, TERMFONT_UNDER);          term_fontpush(p, TERMFONT_UNDER);
         return(1);          return 1;
 }  }
   
 static int  static int
Line 1468  termp_fn_pre(DECL_ARGS)
Line 1468  termp_fn_pre(DECL_ARGS)
         synopsis_pre(p, n);          synopsis_pre(p, n);
   
         if (NULL == (n = n->child))          if (NULL == (n = n->child))
                 return(0);                  return 0;
   
         if (pretty) {          if (pretty) {
                 rmargin = p->rmargin;                  rmargin = p->rmargin;
Line 1518  termp_fn_pre(DECL_ARGS)
Line 1518  termp_fn_pre(DECL_ARGS)
                 term_flushln(p);                  term_flushln(p);
         }          }
   
         return(0);          return 0;
 }  }
   
 static int  static int
Line 1528  termp_fa_pre(DECL_ARGS)
Line 1528  termp_fa_pre(DECL_ARGS)
   
         if (n->parent->tok != MDOC_Fo) {          if (n->parent->tok != MDOC_Fo) {
                 term_fontpush(p, TERMFONT_UNDER);                  term_fontpush(p, TERMFONT_UNDER);
                 return(1);                  return 1;
         }          }
   
         for (nn = n->child; nn; nn = nn->next) {          for (nn = n->child; nn; nn = nn->next) {
Line 1543  termp_fa_pre(DECL_ARGS)
Line 1543  termp_fa_pre(DECL_ARGS)
                 }                  }
         }          }
   
         return(0);          return 0;
 }  }
   
 static int  static int
Line 1555  termp_bd_pre(DECL_ARGS)
Line 1555  termp_bd_pre(DECL_ARGS)
   
         if (n->type == ROFFT_BLOCK) {          if (n->type == ROFFT_BLOCK) {
                 print_bvspace(p, n, n);                  print_bvspace(p, n, n);
                 return(1);                  return 1;
         } else if (n->type == ROFFT_HEAD)          } else if (n->type == ROFFT_HEAD)
                 return(0);                  return 0;
   
         /* Handle the -offset argument. */          /* Handle the -offset argument. */
   
Line 1587  termp_bd_pre(DECL_ARGS)
Line 1587  termp_bd_pre(DECL_ARGS)
         if (DISP_literal != n->norm->Bd.type &&          if (DISP_literal != n->norm->Bd.type &&
             DISP_unfilled != n->norm->Bd.type &&              DISP_unfilled != n->norm->Bd.type &&
             DISP_centered != n->norm->Bd.type)              DISP_centered != n->norm->Bd.type)
                 return(1);                  return 1;
   
         tabwidth = p->tabwidth;          tabwidth = p->tabwidth;
         if (DISP_literal == n->norm->Bd.type)          if (DISP_literal == n->norm->Bd.type)
Line 1645  termp_bd_pre(DECL_ARGS)
Line 1645  termp_bd_pre(DECL_ARGS)
         p->tabwidth = tabwidth;          p->tabwidth = tabwidth;
         p->rmargin = rm;          p->rmargin = rm;
         p->maxrmargin = rmax;          p->maxrmargin = rmax;
         return(0);          return 0;
 }  }
   
 static void  static void
Line 1680  termp_bx_pre(DECL_ARGS)
Line 1680  termp_bx_pre(DECL_ARGS)
                 term_word(p, "BSD");                  term_word(p, "BSD");
         } else {          } else {
                 term_word(p, "BSD");                  term_word(p, "BSD");
                 return(0);                  return 0;
         }          }
   
         if (NULL != (n = n->next)) {          if (NULL != (n = n->next)) {
Line 1690  termp_bx_pre(DECL_ARGS)
Line 1690  termp_bx_pre(DECL_ARGS)
                 term_word(p, n->string);                  term_word(p, n->string);
         }          }
   
         return(0);          return 0;
 }  }
   
 static int  static int
Line 1730  termp_xx_pre(DECL_ARGS)
Line 1730  termp_xx_pre(DECL_ARGS)
                 term_word(p, n->child->string);                  term_word(p, n->child->string);
                 p->flags = flags;                  p->flags = flags;
         }          }
         return(0);          return 0;
 }  }
   
 static void  static void
Line 1762  termp_ss_pre(DECL_ARGS)
Line 1762  termp_ss_pre(DECL_ARGS)
                 break;                  break;
         }          }
   
         return(1);          return 1;
 }  }
   
 static void  static void
Line 1779  termp_cd_pre(DECL_ARGS)
Line 1779  termp_cd_pre(DECL_ARGS)
   
         synopsis_pre(p, n);          synopsis_pre(p, n);
         term_fontpush(p, TERMFONT_BOLD);          term_fontpush(p, TERMFONT_BOLD);
         return(1);          return 1;
 }  }
   
 static int  static int
Line 1798  termp_in_pre(DECL_ARGS)
Line 1798  termp_in_pre(DECL_ARGS)
         }          }
   
         p->flags |= TERMP_NOSPACE;          p->flags |= TERMP_NOSPACE;
         return(1);          return 1;
 }  }
   
 static void  static void
Line 1847  termp_sp_pre(DECL_ARGS)
Line 1847  termp_sp_pre(DECL_ARGS)
                 for (i = 0; i < len; i++)                  for (i = 0; i < len; i++)
                         term_vspace(p);                          term_vspace(p);
   
         return(0);          return 0;
 }  }
   
 static int  static int
 termp_skip_pre(DECL_ARGS)  termp_skip_pre(DECL_ARGS)
 {  {
   
         return(0);          return 0;
 }  }
   
 static int  static int
Line 1862  termp_quote_pre(DECL_ARGS)
Line 1862  termp_quote_pre(DECL_ARGS)
 {  {
   
         if (n->type != ROFFT_BODY && n->type != ROFFT_ELEM)          if (n->type != ROFFT_BODY && n->type != ROFFT_ELEM)
                 return(1);                  return 1;
   
         switch (n->tok) {          switch (n->tok) {
         case MDOC_Ao:          case MDOC_Ao:
Line 1893  termp_quote_pre(DECL_ARGS)
Line 1893  termp_quote_pre(DECL_ARGS)
         case MDOC_En:          case MDOC_En:
                 if (NULL == n->norm->Es ||                  if (NULL == n->norm->Es ||
                     NULL == n->norm->Es->child)                      NULL == n->norm->Es->child)
                         return(1);                          return 1;
                 term_word(p, n->norm->Es->child->string);                  term_word(p, n->norm->Es->child->string);
                 break;                  break;
         case MDOC_Po:          case MDOC_Po:
Line 1920  termp_quote_pre(DECL_ARGS)
Line 1920  termp_quote_pre(DECL_ARGS)
         }          }
   
         p->flags |= TERMP_NOSPACE;          p->flags |= TERMP_NOSPACE;
         return(1);          return 1;
 }  }
   
 static void  static void
Line 1995  termp_eo_pre(DECL_ARGS)
Line 1995  termp_eo_pre(DECL_ARGS)
 {  {
   
         if (n->type != ROFFT_BODY)          if (n->type != ROFFT_BODY)
                 return(1);                  return 1;
   
         if (n->end == ENDBODY_NOT &&          if (n->end == ENDBODY_NOT &&
             n->parent->head->child == NULL &&              n->parent->head->child == NULL &&
Line 2007  termp_eo_pre(DECL_ARGS)
Line 2007  termp_eo_pre(DECL_ARGS)
              (n->parent->tail != NULL && n->parent->tail->child != NULL)))               (n->parent->tail != NULL && n->parent->tail->child != NULL)))
                 p->flags |= TERMP_NOSPACE;                  p->flags |= TERMP_NOSPACE;
   
         return(1);          return 1;
 }  }
   
 static void  static void
Line 2044  termp_fo_pre(DECL_ARGS)
Line 2044  termp_fo_pre(DECL_ARGS)
   
         if (n->type == ROFFT_BLOCK) {          if (n->type == ROFFT_BLOCK) {
                 synopsis_pre(p, n);                  synopsis_pre(p, n);
                 return(1);                  return 1;
         } else if (n->type == ROFFT_BODY) {          } else if (n->type == ROFFT_BODY) {
                 if (pretty) {                  if (pretty) {
                         rmargin = p->rmargin;                          rmargin = p->rmargin;
Line 2062  termp_fo_pre(DECL_ARGS)
Line 2062  termp_fo_pre(DECL_ARGS)
                         p->offset = p->rmargin;                          p->offset = p->rmargin;
                         p->rmargin = rmargin;                          p->rmargin = rmargin;
                 }                  }
                 return(1);                  return 1;
         }          }
   
         if (NULL == n->child)          if (NULL == n->child)
                 return(0);                  return 0;
   
         /* XXX: we drop non-initial arguments as per groff. */          /* XXX: we drop non-initial arguments as per groff. */
   
         assert(n->child->string);          assert(n->child->string);
         term_fontpush(p, TERMFONT_BOLD);          term_fontpush(p, TERMFONT_BOLD);
         term_word(p, n->child->string);          term_word(p, n->child->string);
         return(0);          return 0;
 }  }
   
 static void  static void
Line 2098  termp_bf_pre(DECL_ARGS)
Line 2098  termp_bf_pre(DECL_ARGS)
 {  {
   
         if (n->type == ROFFT_HEAD)          if (n->type == ROFFT_HEAD)
                 return(0);                  return 0;
         else if (n->type != ROFFT_BODY)          else if (n->type != ROFFT_BODY)
                 return(1);                  return 1;
   
         if (FONT_Em == n->norm->Bf.font)          if (FONT_Em == n->norm->Bf.font)
                 term_fontpush(p, TERMFONT_UNDER);                  term_fontpush(p, TERMFONT_UNDER);
Line 2109  termp_bf_pre(DECL_ARGS)
Line 2109  termp_bf_pre(DECL_ARGS)
         else          else
                 term_fontpush(p, TERMFONT_NONE);                  term_fontpush(p, TERMFONT_NONE);
   
         return(1);          return 1;
 }  }
   
 static int  static int
Line 2126  termp_sm_pre(DECL_ARGS)
Line 2126  termp_sm_pre(DECL_ARGS)
         if (p->col && ! (TERMP_NONOSPACE & p->flags))          if (p->col && ! (TERMP_NONOSPACE & p->flags))
                 p->flags &= ~TERMP_NOSPACE;                  p->flags &= ~TERMP_NOSPACE;
   
         return(0);          return 0;
 }  }
   
 static int  static int
Line 2136  termp_ap_pre(DECL_ARGS)
Line 2136  termp_ap_pre(DECL_ARGS)
         p->flags |= TERMP_NOSPACE;          p->flags |= TERMP_NOSPACE;
         term_word(p, "'");          term_word(p, "'");
         p->flags |= TERMP_NOSPACE;          p->flags |= TERMP_NOSPACE;
         return(1);          return 1;
 }  }
   
 static void  static void
Line 2171  termp_li_pre(DECL_ARGS)
Line 2171  termp_li_pre(DECL_ARGS)
 {  {
   
         term_fontpush(p, TERMFONT_NONE);          term_fontpush(p, TERMFONT_NONE);
         return(1);          return 1;
 }  }
   
 static int  static int
Line 2180  termp_lk_pre(DECL_ARGS)
Line 2180  termp_lk_pre(DECL_ARGS)
         const struct roff_node *link, *descr;          const struct roff_node *link, *descr;
   
         if (NULL == (link = n->child))          if (NULL == (link = n->child))
                 return(0);                  return 0;
   
         if (NULL != (descr = link->next)) {          if (NULL != (descr = link->next)) {
                 term_fontpush(p, TERMFONT_UNDER);                  term_fontpush(p, TERMFONT_UNDER);
Line 2197  termp_lk_pre(DECL_ARGS)
Line 2197  termp_lk_pre(DECL_ARGS)
         term_word(p, link->string);          term_word(p, link->string);
         term_fontpop(p);          term_fontpop(p);
   
         return(0);          return 0;
 }  }
   
 static int  static int
Line 2208  termp_bk_pre(DECL_ARGS)
Line 2208  termp_bk_pre(DECL_ARGS)
         case ROFFT_BLOCK:          case ROFFT_BLOCK:
                 break;                  break;
         case ROFFT_HEAD:          case ROFFT_HEAD:
                 return(0);                  return 0;
         case ROFFT_BODY:          case ROFFT_BODY:
                 if (n->parent->args || 0 == n->prev->nchild)                  if (n->parent->args || 0 == n->prev->nchild)
                         p->flags |= TERMP_PREKEEP;                          p->flags |= TERMP_PREKEEP;
Line 2217  termp_bk_pre(DECL_ARGS)
Line 2217  termp_bk_pre(DECL_ARGS)
                 abort();                  abort();
         }          }
   
         return(1);          return 1;
 }  }
   
 static void  static void
Line 2253  termp__t_pre(DECL_ARGS)
Line 2253  termp__t_pre(DECL_ARGS)
          */           */
         if (n->parent && MDOC_Rs == n->parent->tok &&          if (n->parent && MDOC_Rs == n->parent->tok &&
             n->parent->norm->Rs.quote_T)              n->parent->norm->Rs.quote_T)
                 return(termp_quote_pre(p, pair, meta, n));                  return termp_quote_pre(p, pair, meta, n);
   
         term_fontpush(p, TERMFONT_UNDER);          term_fontpush(p, TERMFONT_UNDER);
         return(1);          return 1;
 }  }
   
 static int  static int
Line 2264  termp_under_pre(DECL_ARGS)
Line 2264  termp_under_pre(DECL_ARGS)
 {  {
   
         term_fontpush(p, TERMFONT_UNDER);          term_fontpush(p, TERMFONT_UNDER);
         return(1);          return 1;
 }  }
   
 static int  static int
Line 2276  termp_er_pre(DECL_ARGS)
Line 2276  termp_er_pre(DECL_ARGS)
              (n->parent->tok == MDOC_Bq &&               (n->parent->tok == MDOC_Bq &&
               n->parent->parent->parent->tok == MDOC_It)))                n->parent->parent->parent->tok == MDOC_It)))
                 tag_put(n->child->string, 1, p->line);                  tag_put(n->child->string, 1, p->line);
         return(1);          return 1;
 }  }
   
 static int  static int
Line 2291  termp_tag_pre(DECL_ARGS)
Line 2291  termp_tag_pre(DECL_ARGS)
               n->parent->parent->prev == NULL &&                n->parent->parent->prev == NULL &&
               n->parent->parent->parent->tok == MDOC_It)))                n->parent->parent->parent->tok == MDOC_It)))
                 tag_put(n->child->string, 1, p->line);                  tag_put(n->child->string, 1, p->line);
         return(1);          return 1;
 }  }

Legend:
Removed from v.1.327  
changed lines
  Added in v.1.328

CVSweb