From 632038c8c98f1c408bb368edf910b849f186dc8a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 16 Jun 2009 19:13:28 +0000 Subject: Modernised comment handling: text following \" is thrown away before either parser is invoked. Single-dot lines correctly handled. This confirms with both new- and old-groff. "Comment" subsection added to mdoc.7 and man.7. --- man.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'man.c') diff --git a/man.c b/man.c index 56b0721c..5b83d958 100644 --- a/man.c +++ b/man.c @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.19 2009/06/10 20:18:43 kristaps Exp $ */ +/* $Id: man.c,v 1.20 2009/06/16 19:13:28 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -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