diff options
Diffstat (limited to 'org/madore/damlengine/TodoBodyElement.java')
-rw-r--r-- | org/madore/damlengine/TodoBodyElement.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/org/madore/damlengine/TodoBodyElement.java b/org/madore/damlengine/TodoBodyElement.java index e70bd3b..fd75b89 100644 --- a/org/madore/damlengine/TodoBodyElement.java +++ b/org/madore/damlengine/TodoBodyElement.java @@ -35,6 +35,24 @@ public final class TodoBodyElement extends TodoDefaultElement { ArrayList<Node> childList = getChildList(this.node); ArrayList<TodoElement> toProcess = new ArrayList<TodoElement>(childList.size()+8); + if ( node.getAttributeNS(null, "notitle").equals("") + && ctx.title != null ) { + Element token = ctx.doc.createElementNS(DamlEngine.DAML_NS, + "d:implicit-do-title"); + bodyNode.appendChild(ctx.doc.createTextNode("\n")); + bodyNode.appendChild(token); + toProcess.add(new TodoTitleOrSubtitle(TodoTitleOrSubtitle.Type.TITLE, + token, this.ctx, this)); + } + if ( node.getAttributeNS(null, "nosubtitle").equals("") + && ctx.subtitle != null ) { + Element token = ctx.doc.createElementNS(DamlEngine.DAML_NS, + "d:implicit-do-subtitle"); + bodyNode.appendChild(ctx.doc.createTextNode("\n")); + bodyNode.appendChild(token); + toProcess.add(new TodoTitleOrSubtitle(TodoTitleOrSubtitle.Type.SUBTITLE, + token, this.ctx, this)); + } if ( node.getAttributeNS(null, "nonavbar").equals("") ) { Element token = ctx.doc.createElementNS(DamlEngine.DAML_NS, "d:implicit-do-navbar"); |