From 7fb2155a48f7312ff71bc841ce587c44f333384b Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Wed, 7 Sep 2011 14:51:59 +0200 Subject: 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. --- org/madore/damlengine/TodoKillAcronymElement.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'org/madore/damlengine/TodoKillAcronymElement.java') 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 attrList = getAttrList(this.node); for ( Attr attr : attrList ) { if ( attr.getNamespaceURI() == null ) { -- cgit v1.2.3