Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makemandb Escape hyphen when parsing .Nd



details:   https://anonhg.NetBSD.org/src/rev/409eac69f226
branches:  trunk
changeset: 819847:409eac69f226
user:      abhinav <abhinav%NetBSD.org@localhost>
date:      Mon Dec 19 14:10:57 2016 +0000

description:
Escape hyphen when parsing .Nd

diffstat:

 usr.sbin/makemandb/makemandb.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 907e24cf7dee -r 409eac69f226 usr.sbin/makemandb/makemandb.c
--- a/usr.sbin/makemandb/makemandb.c    Mon Dec 19 13:45:57 2016 +0000
+++ b/usr.sbin/makemandb/makemandb.c    Mon Dec 19 14:10:57 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makemandb.c,v 1.45 2016/12/17 17:04:38 abhinav Exp $   */
+/*     $NetBSD: makemandb.c,v 1.46 2016/12/19 14:10:57 abhinav Exp $   */
 /*
  * Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
  * Copyright (c) 2011 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: makemandb.c,v 1.45 2016/12/17 17:04:38 abhinav Exp $");
+__RCSID("$NetBSD: makemandb.c,v 1.46 2016/12/19 14:10:57 abhinav Exp $");
 
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -996,6 +996,8 @@
 {
        if (n->type == ROFFT_BODY)
                deroff(&rec->name_desc, n);
+       if (rec->name_desc)
+               replace_hyph(rec->name_desc);
 
 }
 



Home | Main Index | Thread Index | Old Index