summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2011-08-26 17:48:30 +0200
committerDavid A. Madore <david+git@madore.org>2011-08-26 17:48:30 +0200
commit504411bae02ad9db4dad082bdb42969ba09fb0e3 (patch)
tree65a174628ee6c85ea66e04a68e90f4ba7824c6f9 /org/madore/damlengine
parent3b1ce20a6d59e3424225421da7aef6fc50b8e047 (diff)
downloaddamlengine-504411bae02ad9db4dad082bdb42969ba09fb0e3.tar.gz
damlengine-504411bae02ad9db4dad082bdb42969ba09fb0e3.tar.bz2
damlengine-504411bae02ad9db4dad082bdb42969ba09fb0e3.zip
Add weblog-internal-link class to links created by d:wref attribute.
Diffstat (limited to 'org/madore/damlengine')
-rw-r--r--org/madore/damlengine/TodoWrefAttr.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org/madore/damlengine/TodoWrefAttr.java b/org/madore/damlengine/TodoWrefAttr.java
index 5a15045..7f31250 100644
--- a/org/madore/damlengine/TodoWrefAttr.java
+++ b/org/madore/damlengine/TodoWrefAttr.java
@@ -40,6 +40,8 @@ public class TodoWrefAttr extends TodoAttr {
String target = targetFile + "#" + targetFragment;
this.owner.removeAttribute(this.attr.getName());
this.owner.setAttributeNS(null, "href", target);
+ if ( ! this.owner.hasAttributeNS(null, "class") )
+ this.owner.setAttributeNS(null, "class", "weblog-internal-link");
}
}