summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/TodoKillAcronymElement.java
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2011-09-07 14:51:59 +0200
committerDavid A. Madore <david+git@madore.org>2011-09-07 14:51:59 +0200
commit7fb2155a48f7312ff71bc841ce587c44f333384b (patch)
treea2c303966a686f5450adf99178b95bab28a90fab /org/madore/damlengine/TodoKillAcronymElement.java
parent58e0ddcdc2b5d47db753868b3cc937bbac59ec55 (diff)
downloaddamlengine-7fb2155a48f7312ff71bc841ce587c44f333384b.tar.gz
damlengine-7fb2155a48f7312ff71bc841ce587c44f333384b.tar.bz2
damlengine-7fb2155a48f7312ff71bc841ce587c44f333384b.zip
Fix and correct some aspects of language handling.
In particular, take better care to ensure that when an element is removed which might have an xml:lang attribute, its children keep their original language.
Diffstat (limited to 'org/madore/damlengine/TodoKillAcronymElement.java')
-rw-r--r--org/madore/damlengine/TodoKillAcronymElement.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org/madore/damlengine/TodoKillAcronymElement.java b/org/madore/damlengine/TodoKillAcronymElement.java
index 65664e9..f7e6190 100644
--- a/org/madore/damlengine/TodoKillAcronymElement.java
+++ b/org/madore/damlengine/TodoKillAcronymElement.java
@@ -28,9 +28,9 @@ public final class TodoKillAcronymElement extends TodoDefaultElement {
"acronym "+node.getAttributeNS(null, "class"));
else
newNode.setAttributeNS(null, "class", "acronym");
- String lang = LangHelper.getLangNorec(node);
- if ( lang != null )
- LangHelper.setLangNorec(newNode, lang);
+ String explicitLang = LangHelper.getLangNorec(node);
+ if ( explicitLang != null )
+ LangHelper.setLangNorec(newNode, explicitLang);
ArrayList<Attr> attrList = getAttrList(this.node);
for ( Attr attr : attrList ) {
if ( attr.getNamespaceURI() == null ) {