From cb90963a61f91dea321cf8119000474fb47f94de Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 2 Jul 2013 10:59:19 +0200 Subject: [PATCH] Fix double br bug. --- src/fr/devinsy/xidyn/Presenter.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fr/devinsy/xidyn/Presenter.java b/src/fr/devinsy/xidyn/Presenter.java index 49fd195..9083dd2 100644 --- a/src/fr/devinsy/xidyn/Presenter.java +++ b/src/fr/devinsy/xidyn/Presenter.java @@ -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(" />"); }