[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.40 and 1.44

version 1.40, 2009/07/14 15:49:44 version 1.44, 2009/07/17 10:56:57
Line 130  static int   termp_ar_pre(DECL_ARGS);
Line 130  static int   termp_ar_pre(DECL_ARGS);
 static  int       termp_bd_pre(DECL_ARGS);  static  int       termp_bd_pre(DECL_ARGS);
 static  int       termp_bf_pre(DECL_ARGS);  static  int       termp_bf_pre(DECL_ARGS);
 static  int       termp_bq_pre(DECL_ARGS);  static  int       termp_bq_pre(DECL_ARGS);
   static  int       termp_br_pre(DECL_ARGS);
 static  int       termp_brq_pre(DECL_ARGS);  static  int       termp_brq_pre(DECL_ARGS);
 static  int       termp_bt_pre(DECL_ARGS);  static  int       termp_bt_pre(DECL_ARGS);
 static  int       termp_cd_pre(DECL_ARGS);  static  int       termp_cd_pre(DECL_ARGS);
Line 292  static const struct termact termacts[MDOC_MAX] = {
Line 293  static const struct termact termacts[MDOC_MAX] = {
         { NULL, NULL }, /* En */          { NULL, NULL }, /* En */
         { termp_xx_pre, NULL }, /* Dx */          { termp_xx_pre, NULL }, /* Dx */
         { NULL, NULL }, /* %Q */          { NULL, NULL }, /* %Q */
           { termp_br_pre, NULL }, /* br */
           { NULL, NULL }, /* sp */
 };  };
   
 #ifdef __linux__  #ifdef __linux__
Line 407  print_foot(struct termp *p, const struct mdoc_meta *me
Line 410  print_foot(struct termp *p, const struct mdoc_meta *me
   
         tm = localtime(&meta->date);          tm = localtime(&meta->date);
   
         if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm))          if (0 == strftime(buf, p->rmargin, "%B %e, %Y", tm))
                 err(1, "strftime");                  err(1, "strftime");
   
         (void)strlcpy(os, meta->os, p->rmargin);          (void)strlcpy(os, meta->os, p->rmargin);
Line 797  termp_it_pre(DECL_ARGS)
Line 800  termp_it_pre(DECL_ARGS)
          */           */
   
         switch (type) {          switch (type) {
         case (MDOC_Diag):  
                 term_word(p, "\\ ");  
                 /* FALLTHROUGH */  
         case (MDOC_Inset):          case (MDOC_Inset):
                 if (MDOC_BODY == node->type)                  if (MDOC_BODY == node->type)
                         p->flags &= ~TERMP_NOSPACE;                          p->flags &= ~TERMP_NOSPACE;
Line 988  termp_it_post(DECL_ARGS)
Line 988  termp_it_post(DECL_ARGS)
   
         switch (type) {          switch (type) {
         case (MDOC_Diag):          case (MDOC_Diag):
                   term_word(p, "\\ ");
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case (MDOC_Item):          case (MDOC_Item):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
Line 1140  termp_nd_pre(DECL_ARGS)
Line 1141  termp_nd_pre(DECL_ARGS)
         if (MDOC_BODY != node->type)          if (MDOC_BODY != node->type)
                 return(1);                  return(1);
   
         /*  
          * XXX: signed off by jmc@openbsd.org.  This technically  
          * produces a minus sign after the Nd, which is wrong, but is  
          * consistent with the historic OpenBSD tmac file.  
          */  
 #if defined(__OpenBSD__) || defined(__linux__)  #if defined(__OpenBSD__) || defined(__linux__)
         term_word(p, "\\-");          term_word(p, "\\(en");
 #else  #else
         term_word(p, "\\(em");          term_word(p, "\\(em");
 #endif  #endif
Line 1832  termp_in_post(DECL_ARGS)
Line 1828  termp_in_post(DECL_ARGS)
          */           */
         if (node->next && MDOC_In != node->next->tok)          if (node->next && MDOC_In != node->next->tok)
                 term_vspace(p);                  term_vspace(p);
   }
   
   
   /* ARGSUSED */
   static int
   termp_br_pre(DECL_ARGS)
   {
   
           term_newln(p);
           return(1);
 }  }
   
   

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.44

CVSweb