Skip to content

Commit

Permalink
fix entry links attributes writing to file lkiesow#135
Browse files Browse the repository at this point in the history
  • Loading branch information
emepetres committed Feb 14, 2024
1 parent 97260ab commit cd14b10
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions feedgen/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,17 @@ def atom_entry(self, extensions=True):
_add_text_elm(entry, self.__atom_content, 'content')

for link in self.__atom_link or []:
link = xml_elem('link', entry, href=link['href'])
_link = xml_elem('link', entry, href=link['href'])
if link.get('rel'):
link.attrib['rel'] = link['rel']
_link.attrib['rel'] = link['rel']
if link.get('type'):
link.attrib['type'] = link['type']
_link.attrib['type'] = link['type']
if link.get('hreflang'):
link.attrib['hreflang'] = link['hreflang']
_link.attrib['hreflang'] = link['hreflang']
if link.get('title'):
link.attrib['title'] = link['title']
_link.attrib['title'] = link['title']
if link.get('length'):
link.attrib['length'] = link['length']
_link.attrib['length'] = link['length']

_add_text_elm(entry, self.__atom_summary, 'summary')

Expand Down

0 comments on commit cd14b10

Please sign in to comment.