< prev index next >
src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/ToHTMLStream.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
--- 1,7 ----
/*
! * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
*** 38,48 ****
*
* This class is not a public API, it is public
* because it is used from another package.
*
* @xsl.usage internal
! * @LastModified: Sept 2018
*/
public final class ToHTMLStream extends ToStream
{
/** This flag is set while receiving events from the DTD */
--- 38,48 ----
*
* This class is not a public API, it is public
* because it is used from another package.
*
* @xsl.usage internal
! * @LastModified: July 2019
*/
public final class ToHTMLStream extends ToStream
{
/** This flag is set while receiving events from the DTD */
*** 717,727 ****
* @throws org.xml.sax.SAXException
*/
public final void endDocument() throws org.xml.sax.SAXException
{
if (m_doIndent) {
! flushCharactersBuffer();
}
flushPending();
if (m_doIndent && !m_isprevtext)
{
try
--- 717,727 ----
* @throws org.xml.sax.SAXException
*/
public final void endDocument() throws org.xml.sax.SAXException
{
if (m_doIndent) {
! flushCharactersBuffer(false);
}
flushPending();
if (m_doIndent && !m_isprevtext)
{
try
*** 780,790 ****
throws SAXException
{
if (m_doIndent) {
// will add extra one if having namespace but no matter
m_childNodeNum++;
! flushCharactersBuffer();
}
ElemContext elemContext = m_elemContext;
// clean up any pending things first
if (elemContext.m_startTagOpen)
--- 780,790 ----
throws SAXException
{
if (m_doIndent) {
// will add extra one if having namespace but no matter
m_childNodeNum++;
! flushCharactersBuffer(false);
}
ElemContext elemContext = m_elemContext;
// clean up any pending things first
if (elemContext.m_startTagOpen)
*** 921,931 ****
final String localName,
final String name)
throws org.xml.sax.SAXException
{
if (m_doIndent) {
! flushCharactersBuffer();
}
// deal with any pending issues
if (m_cdataTagOpen)
closeCDATA();
--- 921,931 ----
final String localName,
final String name)
throws org.xml.sax.SAXException
{
if (m_doIndent) {
! flushCharactersBuffer(false);
}
// deal with any pending issues
if (m_cdataTagOpen)
closeCDATA();
*** 1643,1653 ****
public void processingInstruction(String target, String data)
throws org.xml.sax.SAXException
{
if (m_doIndent) {
m_childNodeNum++;
! flushCharactersBuffer();
}
// Process any pending starDocument and startElement first.
flushPending();
// Use a fairly nasty hack to tell if the next node is supposed to be
--- 1643,1653 ----
public void processingInstruction(String target, String data)
throws org.xml.sax.SAXException
{
if (m_doIndent) {
m_childNodeNum++;
! flushCharactersBuffer(false);
}
// Process any pending starDocument and startElement first.
flushPending();
// Use a fairly nasty hack to tell if the next node is supposed to be
< prev index next >