]> git.cameronkatri.com Git - mandoc.git/blobdiff - tree.c
In mdoc(7), don't mistreat negative .sp arguments as large positive ones.
[mandoc.git] / tree.c
diff --git a/tree.c b/tree.c
index 43934bbfd918879e04235f9958c562f4be0025e6..a5a7f2c7d232ce85ed3ab9f4c0dc03e54717ee98 100644 (file)
--- a/tree.c
+++ b/tree.c
@@ -1,4 +1,4 @@
-/*     $Id: tree.c,v 1.61 2015/02/03 18:37:59 schwarze Exp $ */
+/*     $Id: tree.c,v 1.62 2015/02/05 00:14:13 schwarze Exp $ */
 /*
  * Copyright (c) 2008, 2009, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -162,10 +162,7 @@ print_mdoc(const struct mdoc_node *n, int indent)
                putchar(' ');
                if (MDOC_LINE & n->flags)
                        putchar('*');
-               printf("%d:%d", n->line, n->pos + 1);
-               if (n->lastline != n->line)
-                       printf("-%d", n->lastline);
-               putchar('\n');
+               printf("%d:%d\n", n->line, n->pos + 1);
        }
 
        if (n->eqn)