Fix double br bug.
This commit is contained in:
parent
a0c4e3dcdf
commit
cb90963a61
1 changed files with 4 additions and 4 deletions
|
@ -442,7 +442,7 @@ public class Presenter
|
|||
// Is there anything to do?
|
||||
if (node != null)
|
||||
{
|
||||
logger.debug("nodeName=" + node.getNodeName());
|
||||
logger.debug("nodeName=[{}]", node.getNodeName());
|
||||
// Find the name attribute value.
|
||||
String name;
|
||||
name = getClassAttributeValue(node);
|
||||
|
@ -478,7 +478,7 @@ public class Presenter
|
|||
|
||||
case Node.ELEMENT_NODE:
|
||||
{
|
||||
logger.debug("case Node.ELEMENT_NODE");
|
||||
logger.debug("case Node.ELEMENT_NODE [{}]", node.getNodeName());
|
||||
|
||||
NamedNodeMap attrs = node.getAttributes();
|
||||
Node idAttr = attrs.getNamedItem("id");
|
||||
|
@ -807,7 +807,7 @@ public class Presenter
|
|||
*/
|
||||
static void processElementBasically(final Writer result, final Node node, final TagDataListById datas, final String suffix) throws Exception
|
||||
{
|
||||
logger.debug("processElementBasically - started");
|
||||
logger.debug("processElementBasically - started [{}]", node.getNodeName());
|
||||
|
||||
// Open the tag.
|
||||
result.append('<');
|
||||
|
@ -819,7 +819,7 @@ public class Presenter
|
|||
result.append(processAttributes(node.getAttributes(), null, suffix));
|
||||
|
||||
//
|
||||
if (node.getChildNodes() == null)
|
||||
if ((node.getChildNodes() == null) || (node.getChildNodes().getLength() == 0))
|
||||
{
|
||||
result.append(" />");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue