From 91ab27befd54e154790aa66b308e8be09659b580 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 6 Feb 2011 20:36:36 +0000 Subject: Add initial EQN support to mandoc. This parses, then throws away, data between EQ and EN roff blocks. EQN is different from TBL in that data after .EQ is unilaterally considered an equation until an .EN. Thus, there's no need to jump through hoops in having table spans and so on. This is ONLY the parse code framework in libroff. EQN is not yet passed into the backends. --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 5896d5ff..2daea890 100644 --- a/main.c +++ b/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.142 2011/02/02 21:40:45 kristaps Exp $ */ +/* $Id: main.c,v 1.143 2011/02/06 20:36:36 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -863,6 +863,8 @@ rerun: else mdoc_addspan(curp->mdoc, span); } + } else if (ROFF_EQN == rr) { + assert(curp->man || curp->mdoc); } else if (curp->man || curp->mdoc) { rc = curp->man ? man_parseln(curp->man, -- cgit v1.2.3-56-ge451