From 7b6c8b08e9d29332dcd0a1029e7421334bfb6f61 Mon Sep 17 00:00:00 2001 From: Daniel Glassey Date: Mon, 7 Sep 2015 11:14:57 +0100 Subject: Imported Upstream version 1.7.3+dfsg --- src/modules/filters/teixhtml.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/modules/filters/teixhtml.cpp') diff --git a/src/modules/filters/teixhtml.cpp b/src/modules/filters/teixhtml.cpp index 6a390a1..4ae0d89 100644 --- a/src/modules/filters/teixhtml.cpp +++ b/src/modules/filters/teixhtml.cpp @@ -2,7 +2,7 @@ * * teixhtml.cpp - TEI to XHTML filter * - * $Id: teixhtml.cpp 2984 2013-09-20 12:18:45Z scribe $ + * $Id: teixhtml.cpp 3161 2014-04-17 04:04:03Z greg.hellings $ * * Copyright 2012-2013 CrossWire Bible Society (http://www.crosswire.org) * CrossWire Bible Society @@ -87,28 +87,28 @@ bool TEIXHTML::handleToken(SWBuf &buf, const char *token, BasicFilterUserData *u SWBuf rend = tag.getAttribute("rend"); u->lastHi = rend; - if (rend == "ital") - buf += ""; - else if (rend == "italic") + if (rend == "italic" || rend == "ital") buf += ""; else if (rend == "bold") buf += ""; - else if (rend == "sup") - buf += ""; + else if (rend == "super" || rend == "sup") + buf += ""; + else if (rend == "sub") + buf += ""; else if (rend == "overline") buf += ""; } else if (tag.isEndTag()) { SWBuf rend = u->lastHi; - if (rend == "ital") - buf += ""; - else if (rend == "italic") + if (rend == "italic" || rend == "ital") buf += ""; else if (rend == "bold") buf += ""; - else if (rend == "sup") - buf += ""; + else if (rend == "super" || rend == "sup") + buf += ""; + else if (rend == "sub") + buf += ""; else if (rend == "overline") buf += ""; } -- cgit v1.2.3