From ae0852645c4d11974f281b6094a4f3c98f47be56 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 18 Jun 2009 23:34:54 +0000 Subject: sync to 1.7.19: improved comment handling --- usr.bin/mandoc/man.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'usr.bin/mandoc/man.c') diff --git a/usr.bin/mandoc/man.c b/usr.bin/mandoc/man.c index 403b20c0fdb..a1e4578e7ac 100644 --- a/usr.bin/mandoc/man.c +++ b/usr.bin/mandoc/man.c @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.2 2009/06/14 23:00:57 schwarze Exp $ */ +/* $Id: man.c,v 1.3 2009/06/18 23:34:53 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -24,12 +24,12 @@ #include "libman.h" const char *const __man_macronames[MAN_MAX] = { - "\\\"", "TH", "SH", "SS", + "br", "TH", "SH", "SS", "TP", "LP", "PP", "P", "IP", "HP", "SM", "SB", "BI", "IB", "BR", "RB", "R", "B", "I", "IR", - "RI", "br", "na", "i" + "RI", "na", "i" }; const char * const *man_macronames = __man_macronames; @@ -324,10 +324,6 @@ man_pmacro(struct man *m, int ln, char *buf) ppos = i; - if (buf[i] && '\\' == buf[i]) - if (buf[i + 1] && '\"' == buf[i + 1]) - goto out; - /* Copy the first word into a nil-terminated buffer. */ for (j = 0; j < 4; j++, i++) { -- cgit v1.2.3