From 2745b3f22e169e51509c6a77a688756f59a2b2b9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 6 Sep 2014 23:24:32 +0000 Subject: Simplify by handling empty request lines at the one logical place in the roff parser instead of in three other places in other parsers. No functional change. --- mdoc.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'mdoc.c') diff --git a/mdoc.c b/mdoc.c index f9905d49..205a02b0 100644 --- a/mdoc.c +++ b/mdoc.c @@ -1,4 +1,4 @@ -/* $Id: mdoc.c,v 1.224 2014/08/10 23:54:41 schwarze Exp $ */ +/* $Id: mdoc.c,v 1.225 2014/09/06 23:24:32 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze @@ -793,15 +793,6 @@ mdoc_pmacro(struct mdoc *mdoc, int ln, char *buf, int offs) char mac[5]; struct mdoc_node *n; - /* Empty post-control lines are ignored. */ - - if ('"' == buf[offs]) { - mandoc_msg(MANDOCERR_COMMENT_BAD, mdoc->parse, - ln, offs, NULL); - return(1); - } else if ('\0' == buf[offs]) - return(1); - sv = offs; /* -- cgit v1.2.3-56-ge451