[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.78 and 1.83

version 1.78, 2009/09/22 16:10:52 version 1.83, 2009/09/24 15:01:06
Line 218  static const struct termact termacts[MDOC_MAX] = {
Line 218  static const struct termact termacts[MDOC_MAX] = {
         { termp_under_pre, NULL }, /* Em */          { termp_under_pre, NULL }, /* Em */
         { NULL, NULL }, /* Eo */          { NULL, NULL }, /* Eo */
         { termp_xx_pre, NULL }, /* Fx */          { termp_xx_pre, NULL }, /* Fx */
         { termp_bold_pre, NULL }, /* Ms */          { termp_bold_pre, NULL }, /* Ms */ /* FIXME: convert to symbol? */
         { NULL, NULL }, /* No */          { NULL, NULL }, /* No */
         { termp_ns_pre, NULL }, /* Ns */          { termp_ns_pre, NULL }, /* Ns */
         { termp_xx_pre, NULL }, /* Nx */          { termp_xx_pre, NULL }, /* Nx */
Line 260  static const struct termact termacts[MDOC_MAX] = {
Line 260  static const struct termact termacts[MDOC_MAX] = {
         { termp_brq_pre, termp_brq_post }, /* Brq */          { termp_brq_pre, termp_brq_post }, /* Brq */
         { termp_brq_pre, termp_brq_post }, /* Bro */          { termp_brq_pre, termp_brq_post }, /* Bro */
         { NULL, NULL }, /* Brc */          { NULL, NULL }, /* Brc */
         { NULL, NULL }, /* %C */          { NULL, termp____post }, /* %C */
         { NULL, NULL }, /* Es */          { NULL, NULL }, /* Es */ /* TODO */
         { NULL, NULL }, /* En */          { NULL, NULL }, /* En */ /* TODO */
         { termp_xx_pre, NULL }, /* Dx */          { termp_xx_pre, NULL }, /* Dx */
         { NULL, NULL }, /* %Q */          { NULL, termp____post }, /* %Q */
         { termp_sp_pre, NULL }, /* br */          { termp_sp_pre, NULL }, /* br */
         { termp_sp_pre, NULL }, /* sp */          { termp_sp_pre, NULL }, /* sp */
 };  };
Line 1164  static int
Line 1164  static int
 termp_rs_pre(DECL_ARGS)  termp_rs_pre(DECL_ARGS)
 {  {
   
           if (SEC_SEE_ALSO != node->sec)
                   return(1);
         if (MDOC_BLOCK == node->type && node->prev)          if (MDOC_BLOCK == node->type && node->prev)
                 term_vspace(p);                  term_vspace(p);
         return(1);          return(1);
Line 1415  termp_bt_pre(DECL_ARGS)
Line 1417  termp_bt_pre(DECL_ARGS)
 {  {
   
         term_word(p, "is currently in beta test.");          term_word(p, "is currently in beta test.");
         return(1);          return(0);
 }  }
   
   
Line 1424  static void
Line 1426  static void
 termp_lb_post(DECL_ARGS)  termp_lb_post(DECL_ARGS)
 {  {
   
         term_newln(p);          if (SEC_LIBRARY == node->sec)
                   term_newln(p);
 }  }
   
   
Line 1516  termp_fn_pre(DECL_ARGS)
Line 1519  termp_fn_pre(DECL_ARGS)
 {  {
         const struct mdoc_node *n;          const struct mdoc_node *n;
   
         assert(node->child && MDOC_TEXT == node->child->type);  
   
         /* FIXME: can be "type funcname" "type varname"... */  
   
         p->bold++;          p->bold++;
         term_word(p, node->child->string);          term_word(p, node->child->string);
         p->bold--;          p->bold--;
Line 1842  termp_in_post(DECL_ARGS)
Line 1841  termp_in_post(DECL_ARGS)
 {  {
   
         p->bold++;          p->bold++;
           p->flags |= TERMP_NOSPACE;
         term_word(p, ">");          term_word(p, ">");
         p->bold--;          p->bold--;
   
Line 2106  termp_under_pre(DECL_ARGS)
Line 2106  termp_under_pre(DECL_ARGS)
         p->under++;          p->under++;
         return(1);          return(1);
 }  }
   

Legend:
Removed from v.1.78  
changed lines
  Added in v.1.83

CVSweb