[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.62 and 1.63

version 1.62, 2014/04/20 16:46:05 version 1.63, 2014/04/20 19:40:13
Line 457  print_offs(const char *v)
Line 457  print_offs(const char *v)
         if (Bl_stack_len)          if (Bl_stack_len)
                 sz += Bl_stack[Bl_stack_len - 1];                  sz += Bl_stack[Bl_stack_len - 1];
   
         snprintf(buf, sizeof(buf), "%zun", sz);          (void)snprintf(buf, sizeof(buf), "%zun", sz);
         print_word(buf);          print_word(buf);
         outflags |= MMAN_nl;          outflags |= MMAN_nl;
 }  }
Line 510  print_width(const char *v, const struct mdoc_node *chi
Line 510  print_width(const char *v, const struct mdoc_node *chi
                 remain = sz + 2;                  remain = sz + 2;
         }          }
         if (numeric) {          if (numeric) {
                 snprintf(buf, sizeof(buf), "%zun", sz + 2);                  (void)snprintf(buf, sizeof(buf), "%zun", sz + 2);
                 print_word(buf);                  print_word(buf);
         } else          } else
                 print_word(v);                  print_word(v);
Line 520  print_width(const char *v, const struct mdoc_node *chi
Line 520  print_width(const char *v, const struct mdoc_node *chi
 static void  static void
 print_count(int *count)  print_count(int *count)
 {  {
         char              buf[12];          char              buf[24];
   
         snprintf(buf, sizeof(buf), "%d.", ++*count);          (void)snprintf(buf, sizeof(buf), "%d.", ++*count);
         print_word(buf);          print_word(buf);
 }  }
   
Line 1316  mid_it(void)
Line 1316  mid_it(void)
   
         /* Restore the indentation of the enclosing list. */          /* Restore the indentation of the enclosing list. */
         print_line(".RS", MMAN_Bk_susp);          print_line(".RS", MMAN_Bk_susp);
         snprintf(buf, sizeof(buf), "%zun", Bl_stack[Bl_stack_len - 1]);          (void)snprintf(buf, sizeof(buf), "%zun",
               Bl_stack[Bl_stack_len - 1]);
         print_word(buf);          print_word(buf);
   
         /* Remeber to close out this .RS block later. */          /* Remeber to close out this .RS block later. */

Legend:
Removed from v.1.62  
changed lines
  Added in v.1.63

CVSweb