From 504411bae02ad9db4dad082bdb42969ba09fb0e3 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Fri, 26 Aug 2011 17:48:30 +0200 Subject: Add weblog-internal-link class to links created by d:wref attribute. --- org/madore/damlengine/TodoWrefAttr.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'org/madore/damlengine') 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"); } } -- cgit v1.2.3