| commit | 17c114a5d4c475fafeb6bfdfbffd76c23a7b6c90 | [log] [tgz] |
|---|---|---|
| author | bxu <bxu> | Fri Oct 19 23:26:31 2007 +0000 |
| committer | bxu <bxu> | Fri Oct 19 23:26:31 2007 +0000 |
| tree | c8ece33e71e3b3efaa6fac305c7d2735210052b6 | |
| parent | 6174515681b6e37472d74f53fa9c46012ae157fe [diff] |
jh: undo migration changes & isntead change the way JTidy is called so it removes all leading spaces to workaround JTidy bug of handling indentation
diff --git a/org.eclipse.epf.common/src/org/eclipse/epf/common/html/HTMLFormatter.java b/org.eclipse.epf.common/src/org/eclipse/epf/common/html/HTMLFormatter.java index 42d4e9d..06875cf 100644 --- a/org.eclipse.epf.common/src/org/eclipse/epf/common/html/HTMLFormatter.java +++ b/org.eclipse.epf.common/src/org/eclipse/epf/common/html/HTMLFormatter.java
@@ -132,6 +132,8 @@ if (html == null || html.length() == 0) { return html; } + + html = removeLeadingWhitespace(html); Tidy tidy = new Tidy(); tidy.setXHTML(true);
diff --git a/org.eclipse.epf.library.xmi/src/org/eclipse/epf/library/xmi/internal/migration/MigrationUtil.java b/org.eclipse.epf.library.xmi/src/org/eclipse/epf/library/xmi/internal/migration/MigrationUtil.java index ac552b1..0d53756 100644 --- a/org.eclipse.epf.library.xmi/src/org/eclipse/epf/library/xmi/internal/migration/MigrationUtil.java +++ b/org.eclipse.epf.library.xmi/src/org/eclipse/epf/library/xmi/internal/migration/MigrationUtil.java
@@ -113,10 +113,7 @@ String str0 = validateGuidAttribute((String) value); String str1 = ResourceHelper.validateContent(element, str0); - // strip leading spaces so Tidy will properly indent - String str2 = HTMLFormatter.removeLeadingWhitespace(str1); - - newValue = formater.formatHTML(str2); + newValue = formater.formatHTML((String) str1); if (localDebug) { System.out.println("LD> feature: " + feature.getName());//$NON-NLS-1$