summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org/madore/damlengine/TodoWeblogIndexSelectElement.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/org/madore/damlengine/TodoWeblogIndexSelectElement.java b/org/madore/damlengine/TodoWeblogIndexSelectElement.java
index cf326d8..b39b8da 100644
--- a/org/madore/damlengine/TodoWeblogIndexSelectElement.java
+++ b/org/madore/damlengine/TodoWeblogIndexSelectElement.java
@@ -86,15 +86,13 @@ public final class TodoWeblogIndexSelectElement extends TodoDefaultElement {
li.setAttributeNS(null, "id", lk.getFragment());
li.setAttributeNS(null, "class", "weblog-index-entry");
LangHelper.setLangRec(li, ent.lang);
- Element link;
+ li.appendChild(ctx.doc.createTextNode(ent.date+": "));
+ Element link = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a");
+ li.appendChild(link);
if ( ent.titleXml == null ) {
- link = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a");
- li.appendChild(link);
- link.appendChild(ctx.doc.createTextNode(ent.date));
+ link.appendChild(ctx.doc.createTextNode("#"+numberStr));
} else {
- li.appendChild(ctx.doc.createTextNode(ent.date+": "));
- link = ctx.doc.createElementNS(DamlEngine.XHTML_NS, "a");
- li.appendChild(link);
+ link.appendChild(ctx.doc.createTextNode("#"+numberStr+": "));
LSInput input = domi.createLSInput();
input.setStringData(ent.titleXml);
Document temp = par.parse(input);