From 50d29bf6574505b50aa9e8520471ac37a8de0bad Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 1 Jan 2011 22:27:08 +0000 Subject: 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). --- tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tree.c') 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 * @@ -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(' '); } -- cgit v1.2.3