com.atlassian.confluence.diff
Class StripEmptySpansDiffPostProcessor

java.lang.Object
  extended by com.atlassian.confluence.diff.StripEmptySpansDiffPostProcessor
All Implemented Interfaces:
DiffPostProcessor

public class StripEmptySpansDiffPostProcessor
extends Object
implements DiffPostProcessor

CONFDEV-6604 A DiffPostProcessor that removes any empty span elements from the document, since these are invalid html and make IE8 fail to render the page correctly.


Constructor Summary
StripEmptySpansDiffPostProcessor()
           
 
Method Summary
 org.jdom.Document process(org.jdom.Document document)
           Perform some process on the supplied JDOM Document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StripEmptySpansDiffPostProcessor

public StripEmptySpansDiffPostProcessor()
Method Detail

process

public org.jdom.Document process(org.jdom.Document document)
Description copied from interface: DiffPostProcessor

Perform some process on the supplied JDOM Document. The result of the process should be self contained with any exceptions being caught and a Document returned.

It is expected that an implementation will make changes to the supplied Document parameter although this is not necessary since the result of the call is the input to the next stage.

Specified by:
process in interface DiffPostProcessor
Parameters:
document - the Document from a previous step in the Diff generation process.
Returns:
the Document to be supplied to the next step in the Diff generation process. This must not be null.


Copyright © 2003–2015 Atlassian. All rights reserved.