diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 22:27:08 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 22:27:08 +0000 |
commit | 50d29bf6574505b50aa9e8520471ac37a8de0bad (patch) | |
tree | c9ce4086e578d25027f8722c883949a2c0319868 /tree.c | |
parent | 1e982599c7f339de5711a30d937e9f4ab18a529f (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(' '); } |