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

Diff for /mandoc/mdoc_man.c between version 1.137 and 1.140

version 1.137, 2021/07/04 15:38:26 version 1.140, 2025/07/01 16:39:19
Line 1 
Line 1 
 /*      $Id$ */  /* $Id$ */
 /*  /*
  * Copyright (c) 2011-2021 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2011-2021, 2025 Ingo Schwarze <schwarze@openbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 796  post_percent(DECL_ARGS)
Line 796  post_percent(DECL_ARGS)
         if (mdoc_man_act(n->tok)->pre == pre_em)          if (mdoc_man_act(n->tok)->pre == pre_em)
                 font_pop();                  font_pop();
   
           if (n->parent == NULL || n->parent->tok != MDOC_Rs)
                   return;
   
         if ((nn = roff_node_next(n)) != NULL) {          if ((nn = roff_node_next(n)) != NULL) {
                 np = roff_node_prev(n);                  np = roff_node_prev(n);
                 nnn = nn == NULL ? NULL : roff_node_next(nn);                  nnn = nn == NULL ? NULL : roff_node_next(nn);
Line 1518  mid_it(void)
Line 1521  mid_it(void)
             Bl_stack[Bl_stack_len - 1]);              Bl_stack[Bl_stack_len - 1]);
         print_word(buf);          print_word(buf);
   
         /* Remeber to close out this .RS block later. */          /* Remember to close out this .RS block later. */
         Bl_stack_post[Bl_stack_len - 1] = 1;          Bl_stack_post[Bl_stack_len - 1] = 1;
 }  }
   
Line 1613  pre_lk(DECL_ARGS)
Line 1616  pre_lk(DECL_ARGS)
         }          }
   
         /* Link target. */          /* Link target. */
         font_push('B');  
         print_word(link->string);          print_word(link->string);
         font_pop();  
   
         /* Trailing punctuation. */          /* Trailing punctuation. */
         while (punct != NULL) {          while (punct != NULL) {

Legend:
Removed from v.1.137  
changed lines
  Added in v.1.140

CVSweb