more readable formatting for generated atom feed
This makes it easier to read the non-minified version to verify it.
This commit is contained in:
parent
91b30b3ff0
commit
014e60ae35
@ -17,7 +17,7 @@ for release in releases:
|
|||||||
if updated is None:
|
if updated is None:
|
||||||
updated = time
|
updated = time
|
||||||
content = [etree.tostring(e).decode() for e in release.getchildren()[1:]]
|
content = [etree.tostring(e).decode() for e in release.getchildren()[1:]]
|
||||||
entry = f"""\
|
entries.append(f"""
|
||||||
<entry>
|
<entry>
|
||||||
<id>https://grapheneos.org/releases#{title}</id>
|
<id>https://grapheneos.org/releases#{title}</id>
|
||||||
<link href="https://grapheneos.org/releases#{title}"/>
|
<link href="https://grapheneos.org/releases#{title}"/>
|
||||||
@ -29,8 +29,7 @@ for release in releases:
|
|||||||
{"".join(content)}
|
{"".join(content)}
|
||||||
</div>
|
</div>
|
||||||
</content>
|
</content>
|
||||||
</entry>"""
|
</entry>""")
|
||||||
entries.append(entry)
|
|
||||||
|
|
||||||
feed = f"""<?xml version="1.0" encoding="utf-8"?>
|
feed = f"""<?xml version="1.0" encoding="utf-8"?>
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
@ -45,8 +44,7 @@ feed = f"""<?xml version="1.0" encoding="utf-8"?>
|
|||||||
<name>GrapheneOS</name>
|
<name>GrapheneOS</name>
|
||||||
<email>contact@grapheneos.org</email>
|
<email>contact@grapheneos.org</email>
|
||||||
<uri>https://grapheneos.org/</uri>
|
<uri>https://grapheneos.org/</uri>
|
||||||
</author>
|
</author>{"".join(entries)}
|
||||||
{"".join(entries)}
|
|
||||||
</feed>
|
</feed>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user