summaryrefslogtreecommitdiffstats
path: root/org/madore
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2019-12-01 21:02:12 +0100
committerDavid A. Madore <david+git@madore.org>2019-12-01 21:02:12 +0100
commita37a2f04719d21aec5cd2e84d8aa8b46bb73d730 (patch)
tree624af636654795c35caaed7872d6e4a28e4d2f78 /org/madore
parent7d8e8a9d34dc2c7654480c3643729db4d3e83b57 (diff)
downloaddamlengine-a37a2f04719d21aec5cd2e84d8aa8b46bb73d730.tar.gz
damlengine-a37a2f04719d21aec5cd2e84d8aa8b46bb73d730.tar.bz2
damlengine-a37a2f04719d21aec5cd2e84d8aa8b46bb73d730.zip
Generate entry number in the index of all entries.
Diffstat (limited to 'org/madore')
-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);