summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org/madore/damlengine/TodoEntryElement.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/org/madore/damlengine/TodoEntryElement.java b/org/madore/damlengine/TodoEntryElement.java
index 4b844a9..de9c60d 100644
--- a/org/madore/damlengine/TodoEntryElement.java
+++ b/org/madore/damlengine/TodoEntryElement.java
@@ -62,11 +62,18 @@ public final class TodoEntryElement extends TodoDefaultElement {
String entryIdStr = "d."+entryDateStr+"."+entryNumberStr;
article.setAttributeNS(null, "id", entryIdStr);
- article.setAttributeNS(null, "class", "weblog-entry hentry");
+ {
+ String classAtt = node.getAttributeNS(null, "class");
+ if ( ! classAtt.equals("") )
+ article.setAttributeNS(null, "class",
+ "weblog-entry hentry "+classAtt);
+ else
+ article.setAttributeNS(null, "class", "weblog-entry hentry");
+ }
{
String styleAtt = node.getAttributeNS(null, "style");
if ( ! styleAtt.equals("") )
- node.setAttributeNS(null, "style", styleAtt);
+ article.setAttributeNS(null, "style", styleAtt);
}
article.appendChild(ctx.doc.createTextNode("\n"));