aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tree.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 22:27:08 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 22:27:08 +0000
commit50d29bf6574505b50aa9e8520471ac37a8de0bad (patch)
treec9ce4086e578d25027f8722c883949a2c0319868 /tree.c
parent1e982599c7f339de5711a30d937e9f4ab18a529f (diff)
downloadmandoc-50d29bf6574505b50aa9e8520471ac37a8de0bad.tar.gz
mandoc-50d29bf6574505b50aa9e8520471ac37a8de0bad.tar.zst
mandoc-50d29bf6574505b50aa9e8520471ac37a8de0bad.zip
Add a warning if a data cell has no layout. Also make -Ttree show this
with a little star next to the entry (yeah, this is mostly for testing).
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tree.c b/tree.c
index d56eeaf6..d488c155 100644
--- a/tree.c
+++ b/tree.c
@@ -1,4 +1,4 @@
-/* $Id: tree.c,v 1.28 2011/01/01 17:10:20 kristaps Exp $ */
+/* $Id: tree.c,v 1.29 2011/01/01 22:27:08 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -278,7 +278,7 @@ print_span(const struct tbl_span *sp)
default:
break;
}
- printf("[%s]", dp->string);
+ printf("[%s%s]", dp->string, dp->layout ? "" : "*");
if (dp->next)
putchar(' ');
}