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

Diff for /mandoc/tree.c between version 1.49 and 1.51

version 1.49, 2013/09/15 17:33:57 version 1.51, 2014/03/08 15:50:41
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008, 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
    * Copyright (c) 2013, 2014 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 163  print_mdoc(const struct mdoc_node *n, int indent)
Line 164  print_mdoc(const struct mdoc_node *n, int indent)
                 putchar(' ');                  putchar(' ');
                 if (MDOC_LINE & n->flags)                  if (MDOC_LINE & n->flags)
                         putchar('*');                          putchar('*');
                 printf("%d:%d\n", n->line, n->pos);                  printf("%d:%d", n->line, n->pos);
                   if (n->lastline != n->line)
                           printf("-%d", n->lastline);
                   putchar('\n');
         }          }
   
         if (n->child)          if (n->child)
Line 248  print_man(const struct man_node *n, int indent)
Line 252  print_man(const struct man_node *n, int indent)
         } else {          } else {
                 for (i = 0; i < indent; i++)                  for (i = 0; i < indent; i++)
                         putchar('\t');                          putchar('\t');
                 printf("%s (%s) %d:%d\n", p, t, n->line, n->pos);                  printf("%s (%s) ", p, t);
                   if (MAN_LINE & n->flags)
                           putchar('*');
                   printf("%d:%d\n", n->line, n->pos);
         }          }
   
         if (n->child)          if (n->child)

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.51

CVSweb