From cc7022e86b7687d16be389f19a69f75a82e5123c Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 31 Dec 2011 18:47:52 +0000 Subject: 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. --- apropos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apropos.c') diff --git a/apropos.c b/apropos.c index 15faf977..9ef25f5e 100644 --- a/apropos.c +++ b/apropos.c @@ -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 * Copyright (c) 2011 Ingo Schwarze @@ -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 : "", -- cgit v1.2.3