vmassol (SVN) wrote:
Author: vmassol
Date: 2008-09-02 22:15:02 +0200 (Tue, 02 Sep 2008)
New Revision: 12369
Added:
platform/core/trunk/xwiki-xml/src/main/java/org/xwiki/xml/internal/html/HTMLConstants.java
Removed:
platform/core/trunk/xwiki-xml/src/main/java/org/xwiki/xml/internal/html/TagSwapCleaningFilter.java
Modified:
platform/core/trunk/xwiki-xml/pom.xml
platform/core/trunk/xwiki-xml/src/main/java/org/xwiki/xml/internal/html/DefaultHTMLCleaner.java
platform/core/trunk/xwiki-xml/src/test/java/org/xwiki/xml/internal/html/DefaultHTMLCleanerTest.java
Log:
XWIKI-2634: Various tasks for the new rendering implementation
* Improved HTML Cleaning by upgrading to HtmlCleaner 2.1 and by adding more tag
transformations.
Patch submitted by Wang Nine, reviewed by Vincent Massol with modifications (it was
failing the build with checkstyle errors)
+ tt = new
TagTransformation(HTMLConstants.CENTRE, HTMLConstants.P, false);
+ tt.addAttributeTransformation(HTMLConstants.STYLE_ATTRIBUTE,
"text-align:center");
+ transformations.addTransformation(tt);
+ /**
+ * HTML <centre> tag name.
+ */
+ String CENTRE = "centre";
This should be "center", not "centre"
--
Sergiu Dumitriu
http://purl.org/net/sergiu/