From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id pB91LAk2020833 for ; Thu, 8 Dec 2011 20:21:10 -0500 (EST) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id pB91LAiY016331; Thu, 8 Dec 2011 20:21:10 -0500 (EST) Date: Thu, 8 Dec 2011 20:21:10 -0500 (EST) Message-Id: <201112090121.pB91LAiY016331@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Considerably tidy mandocdb(8) catman descriptions by skipping to X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Considerably tidy mandocdb(8) catman descriptions by skipping to the first hyphen-space combo, not the last hyphen as done previously. Modified Files: -------------- mdocml: mandocdb.c Revision Data ------------- Index: mandocdb.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandocdb.c,v retrieving revision 1.29 retrieving revision 1.30 diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.29 -r1.30 --- mandocdb.c +++ mandocdb.c @@ -1325,8 +1325,8 @@ pformatted(DB *hash, struct buf *buf, st * bytes). */ - if (NULL != (p = strrchr(line, '-'))) { - for (++p; ' ' == *p || '\b' == *p; p++) + if (NULL != (p = strstr(line, "- "))) { + for (p += 2; ' ' == *p || '\b' == *p; p++) /* Skip to next word. */ ; } else p = line; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv