diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-31 18:47:52 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-31 18:47:52 +0000 |
commit | cc7022e86b7687d16be389f19a69f75a82e5123c (patch) | |
tree | f7603a75124811e615420137eada3cdbc4e0ac0a /apropos.c | |
parent | 35e4fb6045ddb0ecb07ca1cd746258735b8b124e (diff) | |
download | mandoc-cc7022e86b7687d16be389f19a69f75a82e5123c.tar.gz mandoc-cc7022e86b7687d16be389f19a69f75a82e5123c.tar.zst mandoc-cc7022e86b7687d16be389f19a69f75a82e5123c.zip |
When parsing catpages, read from the first section (NAME, we hope) until
the next section. Also, remove the limit of 72 characters and enforce
this, instead in the apropos frontend.
Diffstat (limited to 'apropos.c')
-rw-r--r-- | apropos.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: apropos.c,v 1.24 2011/12/12 02:00:49 schwarze Exp $ */ +/* $Id: apropos.c,v 1.25 2011/12/31 18:47:52 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -127,7 +127,7 @@ list(struct res *res, size_t sz, void *arg) qsort(res, sz, sizeof(struct res), cmp); for (i = 0; i < (int)sz; i++) - printf("%s(%s%s%s) - %s\n", res[i].title, + printf("%s(%s%s%s) - %.70s\n", res[i].title, res[i].cat, *res[i].arch ? "/" : "", *res[i].arch ? res[i].arch : "", |