[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.246 and 1.249

version 1.246, 2013/05/18 17:47:47 version 1.249, 2013/06/02 18:16:57
Line 313  print_mdoc_node(DECL_ARGS)
Line 313  print_mdoc_node(DECL_ARGS)
          */           */
   
         if (TERMP_KEEP & p->flags || MDOC_SYNPRETTY & n->flags) {          if (TERMP_KEEP & p->flags || MDOC_SYNPRETTY & n->flags) {
                 if (n->prev && n->prev->line != n->line) {                  if (n->prev ? (n->prev->line != n->line) :
                       (n->parent && n->parent->line != n->line)) {
                         p->flags &= ~TERMP_KEEP;                          p->flags &= ~TERMP_KEEP;
                         p->flags |= TERMP_PREKEEP;                          p->flags |= TERMP_PREKEEP;
                 } else if (NULL == n->prev) {  
                         if (n->parent && n->parent->line != n->line) {  
                                 p->flags &= ~TERMP_KEEP;  
                                 p->flags |= TERMP_PREKEEP;  
                         }  
                 }                  }
         }          }
   
Line 1929  termp_quote_pre(DECL_ARGS)
Line 1925  termp_quote_pre(DECL_ARGS)
         case (MDOC_Do):          case (MDOC_Do):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case (MDOC_Dq):          case (MDOC_Dq):
                 term_word(p, "``");                  term_word(p, "\\(lq");
                 break;                  break;
         case (MDOC_Eo):          case (MDOC_Eo):
                 break;                  break;
Line 1950  termp_quote_pre(DECL_ARGS)
Line 1946  termp_quote_pre(DECL_ARGS)
         case (MDOC_So):          case (MDOC_So):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case (MDOC_Sq):          case (MDOC_Sq):
                 term_word(p, "`");                  term_word(p, "\\(oq");
                 break;                  break;
         default:          default:
                 abort();                  abort();
Line 1995  termp_quote_post(DECL_ARGS)
Line 1991  termp_quote_post(DECL_ARGS)
         case (MDOC_Do):          case (MDOC_Do):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case (MDOC_Dq):          case (MDOC_Dq):
                 term_word(p, "''");                  term_word(p, "\\(rq");
                 break;                  break;
         case (MDOC_Eo):          case (MDOC_Eo):
                 break;                  break;
Line 2016  termp_quote_post(DECL_ARGS)
Line 2012  termp_quote_post(DECL_ARGS)
         case (MDOC_So):          case (MDOC_So):
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         case (MDOC_Sq):          case (MDOC_Sq):
                 term_word(p, "'");                  term_word(p, "\\(cq");
                 break;                  break;
         default:          default:
                 abort();                  abort();
Line 2215  static void
Line 2211  static void
 termp_bk_post(DECL_ARGS)  termp_bk_post(DECL_ARGS)
 {  {
   
         if (MDOC_BODY == n->type)          if (MDOC_BODY == n->type && ! (MDOC_SYNPRETTY & n->flags))
                 p->flags &= ~(TERMP_KEEP | TERMP_PREKEEP);                  p->flags &= ~(TERMP_KEEP | TERMP_PREKEEP);
 }  }
   

Legend:
Removed from v.1.246  
changed lines
  Added in v.1.249

CVSweb