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

jswordcvs at crosswire.org jswordcvs at crosswire.org
Sat Apr 2 21:07:38 MST 2005


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

Modified Files:
	PrettySerializingContentHandler.java 
Log Message:
Fix bugs.

Index: PrettySerializingContentHandler.java
===================================================================
RCS file: /cvs/jsword/common/java/core/org/crosswire/common/xml/PrettySerializingContentHandler.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** PrettySerializingContentHandler.java	23 Mar 2005 02:50:52 -0000	1.4
--- PrettySerializingContentHandler.java	3 Apr 2005 04:07:36 -0000	1.5
***************
*** 147,162 ****
      {
          depth--;
! //      Java cannot display empty tags <tag/>
! //        if (pendingEndTag)
! //        {
! //            if (formatting.isAnalytic() && depth > 0)
! //            {
! //                emitWhitespace(depth - 1);
! //            }
  //
  //            // Hack alert JTextPane cannot handle <br/>
  //            if (localname.equalsIgnoreCase("br")) //$NON-NLS-1$
  //            {
! //                write(getTagEnd());
  //            }
  //            else
--- 147,162 ----
      {
          depth--;
! //      Java cannot display empty tags <tag/> so most of the following is commented out
!         if (pendingEndTag)
!         {
!             if (formatting.isAnalytic() && depth > 0)
!             {
!                 emitWhitespace(depth - 1);
!             }
  //
  //            // Hack alert JTextPane cannot handle <br/>
  //            if (localname.equalsIgnoreCase("br")) //$NON-NLS-1$
  //            {
!                 write(getTagEnd());
  //            }
  //            else
***************
*** 164,168 ****
  //                write(getEmptyTagEnd());
  //            }
! //        }
  //        else
  //        {
--- 164,168 ----
  //                write(getEmptyTagEnd());
  //            }
!         }
  //        else
  //        {



More information about the jsword-svn mailing list