summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/TodoWeblogElement.java
diff options
context:
space:
mode:
Diffstat (limited to 'org/madore/damlengine/TodoWeblogElement.java')
-rw-r--r--org/madore/damlengine/TodoWeblogElement.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/org/madore/damlengine/TodoWeblogElement.java b/org/madore/damlengine/TodoWeblogElement.java
index fa537a8..3d457a8 100644
--- a/org/madore/damlengine/TodoWeblogElement.java
+++ b/org/madore/damlengine/TodoWeblogElement.java
@@ -23,6 +23,7 @@ public final class TodoWeblogElement extends TodoDefaultElement {
@Override
public void handleNodeOnly() {
+ System.err.println("warning: weblog element should not be processed this way!");
Node parent = node.getParentNode();
String lang = LangHelper.getLangNorec(node);
ArrayList<Node> childList = getChildList(this.node);
@@ -42,8 +43,13 @@ public final class TodoWeblogElement extends TodoDefaultElement {
toProcess.add(it);
}
}
- this.ownerDeque.registerAtStart(toProcess);
+ Element token = ctx.doc.createElementNS(DamlEngine.DAML_NS,
+ "d:implicit-do-comments-script");
+ node.getParentNode().insertBefore(token, node);
+ node.getParentNode().insertBefore(ctx.doc.createTextNode("\n"), node);
+ toProcess.add(new TodoCommentsScript(token, ctx, this));
parent.removeChild(node);
+ this.ownerDeque.registerAtStart(toProcess);
}
}