Added more details of recent fixes to the change.xml (thanks for the hint dion :)

Also added another failing test case along with a fix


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114144 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jstrachan committed 2003-10-01 13:20:59 +00:00
1 parent 5af0968d85
commit ebe30ef486
5 files changed
+42 -11

No files matched your search

@@ -428,16 +428,16 @@ public class Html2XdocBean {
String text = node.getText();
return text.trim().length() <= 0;
}
if (node instanceof Element) {
String name = node.getName();
if (name.equals("p")) {
String text = node.getText();
return text.trim().length() <= 0;
}
if (name.equals("br")) {
return true;
}
}
// if (node instanceof Element) {
// String name = node.getName();
// if (name.equals("p")) {
// String text = node.getText();
// return text.trim().length() <= 0;
// }
// if (name.equals("br")) {
// return true;
// }
// }
return false;
}
@@ -101,6 +101,7 @@ public class TestHtml2Xdoc extends TestCase {
// Test cases
//-------------------------------------------------------------------------
public void testOne() throws Exception {
assertConversion("missingParaBug.html", "missingParaBug.xml");
assertConversion("linkInHeading.html", "linkInHeading.xml");
assertConversion("codeinpara.html", "codeinpara.xml");
assertConversion("input1.html", "output1.xml");
@@ -0,0 +1,13 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>A title</title>
</head>
<body>
<h3>Title</h3>
<p class="Pre-requisitelist">
<a href="foo.html">Some Text</a></p>
</body>
</html>
@@ -0,0 +1,11 @@
<document>
<properties>
<title>A title</title>
</properties>
<body>
<section name="Title">
<p class="Pre-requisitelist"><a href="foo.html">Some Text</a>
</p>
</section>
</body>
</document>