We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40a3dd3 commit 20a5a33Copy full SHA for 20a5a33
main.py
@@ -83,10 +83,11 @@ def into_format(self, fmt: str) -> str:
83
if fmt == "text":
84
return str(self)
85
elif fmt == "html":
86
- return f"<strong>[{self.series} {self.date}]</strong> <em>{self.title}</em> by {', '.join(self.authors)}\n" + \
87
- f"(<a href='{self.link}'>Link</a>" + \
+ return f"<strong>[{self.series} {self.date}] <em>{self.title}</em></strong><br>" + \
+ f"<ul><li>Authors: {', '.join(self.authors)}</li>" + \
88
+ f"<li><a href='{self.link}'>Link</a>" + \
89
(f", <a href='{self.code}'>Code</a>" if self.code else "") + \
- ")"
90
+ "</ul>"
91
else:
92
raise ValueError(f"Unsupported format: {fmt}.")
93
0 commit comments