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

chrislit at crosswire.org chrislit at crosswire.org
Sat Feb 7 00:32:12 MST 2009


Author: chrislit
Date: 2009-02-07 00:32:12 -0700 (Sat, 07 Feb 2009)
New Revision: 2231

Modified:
   trunk/src/modules/filters/osisrtf.cpp
Log:
cosmetic changes to OSIS RTF filter output

Modified: trunk/src/modules/filters/osisrtf.cpp
===================================================================
--- trunk/src/modules/filters/osisrtf.cpp	2009-01-31 01:30:13 UTC (rev 2230)
+++ trunk/src/modules/filters/osisrtf.cpp	2009-02-07 07:32:12 UTC (rev 2231)
@@ -464,16 +464,10 @@
 		else if (!strcmp(tag.getName(), "divineName")) {
 
 			if ((!tag.isEndTag()) && (!tag.isEmpty())) {
-				u->suspendTextPassThru = (++u->suspendLevel);
+ 				outText("{\\scaps ", buf, u);
 			}
 			else if (tag.isEndTag()) {
-				SWBuf lastText = u->lastSuspendSegment.c_str();
-				u->suspendTextPassThru = (--u->suspendLevel);
-				if (lastText.size()) {
-					toupperstr(lastText);
-					scratch.setFormatted("{\\fs19%c\\fs16%s}", lastText[0], lastText.c_str()+1);
-					outText(scratch.c_str(), buf, u);
-				}               
+				outText("}", buf, u);
 			}
 		}
 
@@ -481,10 +475,11 @@
 		else if (!strcmp(tag.getName(), "div")) {
 
 			if ((!tag.isEndTag()) && (!tag.isEmpty())) {
-				outText("\\par\\par\\pard ", buf, u);
+				outText("\\pard ", buf, u);
 			}
 			else if (tag.isEndTag()) {
-			}
+	                        outText("\\par ", buf, u);
+                        }
 		}
 
 		// image




More information about the sword-cvs mailing list