diff options
author | David A. Madore <david+git@madore.org> | 2012-02-13 23:58:51 +0100 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2012-02-13 23:58:51 +0100 |
commit | 045c56305ad585b037aff655ddbf74490e35e5be (patch) | |
tree | 3b52a3c82e92868fc13148cbd96f01da2b78c337 /org/madore/damlengine | |
parent | 3727685f59664068d20d137f8f34f23635cfc34a (diff) | |
download | damlengine-045c56305ad585b037aff655ddbf74490e35e5be.tar.gz damlengine-045c56305ad585b037aff655ddbf74490e35e5be.tar.bz2 damlengine-045c56305ad585b037aff655ddbf74490e35e5be.zip |
Fix style and class attributes on <d:entry> elements.
Diffstat (limited to 'org/madore/damlengine')
-rw-r--r-- | org/madore/damlengine/TodoEntryElement.java | 11 |
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")); |