[jsword-svn] common/java/core/org/crosswire/common/xml s
jswordcvs at crosswire.org
jswordcvs at crosswire.org
Fri Mar 18 16:04:17 MST 2005
Update of /cvs/jsword/common/java/core/org/crosswire/common/xml
In directory www.crosswire.org:/tmp/cvs-serv7567/java/core/org/crosswire/common/xml
Modified Files:
HTMLSerializingContentHandler.java
Log Message:
style tweaks
Index: HTMLSerializingContentHandler.java
===================================================================
RCS file: /cvs/jsword/common/java/core/org/crosswire/common/xml/HTMLSerializingContentHandler.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** HTMLSerializingContentHandler.java 12 Mar 2005 21:15:55 -0000 1.1
--- HTMLSerializingContentHandler.java 18 Mar 2005 23:04:14 -0000 1.2
***************
*** 30,34 ****
public class HTMLSerializingContentHandler extends PrettySerializingContentHandler
{
-
/**
* A formatting serializer that does not add whitespace to the document.
--- 30,33 ----
***************
*** 128,141 ****
{
StringBuffer buf = new StringBuffer();
// Note: we should be using SPAN here but Sun's Java does not support styling it.
// Also, it introduces whitespace between the span and the text.
! buf.append("FONT.tag { color : #666699; font-weight: bold; }\n"); //$NON-NLS-1$
! buf.append("FONT.attr { color : #669966; font-weight: bold; }\n"); //$NON-NLS-1$
! buf.append("FONT.value { color : #669966; font-style: italic; }\n"); //$NON-NLS-1$
buf.append("FONT.indent { }\n"); //$NON-NLS-1$
! buf.append("FONT.text { background : yellow; }\n"); //$NON-NLS-1$
! write("<html><head><style type='text/css'>\n"); //$NON-NLS-1$
write(buf.toString());
- write("</style></head><body>\n"); //$NON-NLS-1$
}
--- 127,142 ----
{
StringBuffer buf = new StringBuffer();
+
// Note: we should be using SPAN here but Sun's Java does not support styling it.
// Also, it introduces whitespace between the span and the text.
! buf.append("<html><head><style type='text/css'>\n"); //$NON-NLS-1$
! buf.append("FONT.tag { font-family:courier new, monospaced; color:#666699; font-weight:bold; }\n"); //$NON-NLS-1$
! buf.append("FONT.attr { font-family:courier new, monospaced; color:#669966; font-weight:bold; }\n"); //$NON-NLS-1$
! buf.append("FONT.value { font-family:courier new, monospaced; color:#669966; font-style:italic; }\n"); //$NON-NLS-1$
buf.append("FONT.indent { }\n"); //$NON-NLS-1$
! buf.append("FONT.text { font-family:courier new, monospaced; background:#FFFF99; }\n"); //$NON-NLS-1$
! buf.append("</style></head><body>\n"); //$NON-NLS-1$
!
write(buf.toString());
}
More information about the jsword-svn
mailing list