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/c35f439bfda3
branches: trunk
changeset: 349705:c35f439bfda3
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 046a20cd0fbd -r c35f439bfda3 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