Module Name:    src
Committed By:   abhinav
Date:           Mon Dec 19 14:10:57 UTC 2016

Modified Files:
        src/usr.sbin/makemandb: makemandb.c

Log Message:
Escape hyphen when parsing .Nd


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/usr.sbin/makemandb/makemandb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/makemandb/makemandb.c
diff -u src/usr.sbin/makemandb/makemandb.c:1.45 src/usr.sbin/makemandb/makemandb.c:1.46
--- src/usr.sbin/makemandb/makemandb.c:1.45	Sat Dec 17 17:04:38 2016
+++ src/usr.sbin/makemandb/makemandb.c	Mon Dec 19 14:10:57 2016
@@ -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.upadh...@gmail.com>
  * Copyright (c) 2011 Kristaps Dzonsons <krist...@bsd.lv>
@@ -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 @@ pmdoc_Nd(const struct roff_node *n, mand
 {
 	if (n->type == ROFFT_BODY)
 		deroff(&rec->name_desc, n);
+	if (rec->name_desc)
+		replace_hyph(rec->name_desc);
 
 }
 

Reply via email to