< prev index next >
src/java.desktop/share/classes/javax/swing/text/html/MinimalHTMLWriter.java
Print this page
*** 700,710 ****
writeEndTag("</span>");
fontAttributes = null;
}
/**
! * Adds the style named <code>style</code> to the style mapping. This
* returns the name that should be used when outputting. CSS does not
* allow the full Unicode set to be used as a style name.
*/
private String addStyleName(String style) {
if (styleNameMapping == null) {
--- 700,710 ----
writeEndTag("</span>");
fontAttributes = null;
}
/**
! * Adds the style named {@code style} to the style mapping. This
* returns the name that should be used when outputting. CSS does not
* allow the full Unicode set to be used as a style name.
*/
private String addStyleName(String style) {
if (styleNameMapping == null) {
*** 726,736 ****
styleNameMapping.put(style, mappedName);
return mappedName;
}
/**
! * Returns the mapped style name corresponding to <code>style</code>.
*/
private String mapStyleName(String style) {
if (styleNameMapping == null) {
return style;
}
--- 726,736 ----
styleNameMapping.put(style, mappedName);
return mappedName;
}
/**
! * Returns the mapped style name corresponding to {@code style}.
*/
private String mapStyleName(String style) {
if (styleNameMapping == null) {
return style;
}
< prev index next >