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$