We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01cbc8a commit 6a96c39Copy full SHA for 6a96c39
1 file changed
packtools/sps/models/v2/abstract.py
@@ -239,7 +239,7 @@ def get_abstracts(self, abstract_type=None):
239
for node in self.xmltree.xpath(xpath):
240
abstract = Abstract(
241
node,
242
- self.lang,
+ node.get("{http://www.w3.org/XML/1998/namespace}lang") or self.lang,
243
tags_to_keep=self.tags_to_keep,
244
tags_to_keep_with_content=self.tags_to_keep_with_content,
245
tags_to_remove_with_content=self.tags_to_remove_with_content,
0 commit comments