[sword-cvs] sword/src/modules/filters osisheadings.cpp,1.8,1.9
sword@www.crosswire.org
sword@www.crosswire.org
Sat, 22 Nov 2003 00:42:02 -0700
Update of /usr/local/cvsroot/sword/src/modules/filters
In directory www:/tmp/cvs-serv5544/src/modules/filters
Modified Files:
osisheadings.cpp
Log Message:
Index: osisheadings.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/osisheadings.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- osisheadings.cpp 7 Jul 2003 01:16:15 -0000 1.8
+++ osisheadings.cpp 22 Nov 2003 07:42:00 -0000 1.9
@@ -55,23 +55,21 @@
XMLTag tag(token);
if (!stricmp(tag.getName(), "title")) {
- if ((tag.getAttribute("type")) && (!stricmp(tag.getAttribute("type"), "section"))) {
- if ((tag.getAttribute("subtype")) && (!stricmp(tag.getAttribute("subtype"), "x-preverse"))) {
- hide = true;
- preverse = true;
- header = "";
- continue;
- }
- else {
- hide = true;
- header = "";
- if (option) { // we want the tag in the text
- text += '<';
- text.append(token);
- text += '>';
- }
- continue;
+ if ((tag.getAttribute("subtype")) && (!stricmp(tag.getAttribute("subtype"), "x-preverse"))) {
+ hide = true;
+ preverse = true;
+ header = "";
+ continue;
+ }
+ else {
+ hide = true;
+ header = "";
+ if (option) { // we want the tag in the text
+ text += '<';
+ text.append(token);
+ text += '>';
}
+ continue;
}
if (hide && tag.isEndTag()) {