[sword-svn] r2524 - trunk/src/modules/filters

chrislit at crosswire.org chrislit at crosswire.org
Fri Jul 9 03:17:06 MST 2010


Author: chrislit
Date: 2010-07-09 03:17:05 -0700 (Fri, 09 Jul 2010)
New Revision: 2524

Modified:
   trunk/src/modules/filters/teihtmlhref.cpp
Log:
minor TEI rendering enhancements

Modified: trunk/src/modules/filters/teihtmlhref.cpp
===================================================================
--- trunk/src/modules/filters/teihtmlhref.cpp	2010-06-28 23:05:38 UTC (rev 2523)
+++ trunk/src/modules/filters/teihtmlhref.cpp	2010-07-09 10:17:05 UTC (rev 2524)
@@ -55,7 +55,7 @@
 	addAllowedEscapeString("amp");
 	addAllowedEscapeString("lt");
 	addAllowedEscapeString("gt");
-	
+
 	setTokenCaseSensitive(true);
 }
 
@@ -87,6 +87,8 @@
 				u->lastHi = rend;
 				if (rend == "ital")
 					buf += "<i>";
+				else if (rend == "italic")
+					buf += "<i>";
 				else if (rend == "bold")
 					buf += "<b>";
 				else if (rend == "sup")
@@ -97,6 +99,8 @@
 				SWBuf rend = u->lastHi;
 				if (rend == "ital")
 					buf += "</i>";
+				else if (rend == "italic")
+					buf += "</i>";
 				else if (rend == "bold")
 					buf += "</b>";
 				else if (rend == "sup")
@@ -138,6 +142,11 @@
 			}
 		}
 
+		// <lb.../>
+		else if (!strcmp(tag.getName(), "lb")) {
+			buf += "<br />";
+		}
+
 		// <pos>, <gen>, <case>, <gram>, <number>, <mood>, <pron>, <def>
 		else if (!strcmp(tag.getName(), "pos") || 
 				 !strcmp(tag.getName(), "gen") || 




More information about the sword-cvs mailing list