[jsword-svn] common/java/core/org/crosswire/common/xml s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Tue Mar 15 04:54:39 MST 2005


Update of /cvs/jsword/common/java/core/org/crosswire/common/xml
In directory www.crosswire.org:/tmp/cvs-serv23913/java/core/org/crosswire/common/xml

Modified Files:
	PrettySerializingContentHandler.java 
Log Message:
Had to add a hack to prevent JTextPane from handling <br/> incorrectly.

Index: PrettySerializingContentHandler.java
===================================================================
RCS file: /cvs/jsword/common/java/core/org/crosswire/common/xml/PrettySerializingContentHandler.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PrettySerializingContentHandler.java	12 Mar 2005 21:15:55 -0000	1.1
--- PrettySerializingContentHandler.java	15 Mar 2005 11:54:37 -0000	1.2
***************
*** 154,158 ****
              }
  
!             write(getEmptyTagEnd());
          }
          else
--- 154,166 ----
              }
  
!             // Hack alert JTextPane cannot handle <br/>
!             if (localname.equalsIgnoreCase("br")) //$NON-NLS-1$
!             {
!                 write(getTagEnd());
!             }
!             else
!             {
!                 write(getEmptyTagEnd());
!             }
          }
          else



More information about the jsword-svn mailing list