Skip to content

Commit

Permalink
Merge pull request #66 from robertatakenaka/fix_create_element_which_…
Browse files Browse the repository at this point in the history
…has_tags_3

Corrige a criação de abstract que tem sub elementos
  • Loading branch information
robertatakenaka authored Sep 23, 2024
2 parents fdc20d9 + 8c52553 commit eafd0bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scielo_classic_website/spsxml/sps_xml_pipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,9 @@ def transform(self, data):
# ABSTRACT
if raw.translated_abstracts:
text = raw.get_abstract(language)
abstract = create_node_with_fixed_html_text("p", text)
abstract = ET.Element("abstract")
abstract.set("{http://www.w3.org/XML/1998/namespace}lang", language)
p = create_node_with_fixed_html_text("p", text)
abstract.append(p)
frontstub.append(abstract)

Expand Down

0 comments on commit eafd0bb

Please sign in to comment.