Skip to content

Commit 9b99e9e

Browse files
committed
fix alignment of bibtex blocks
1 parent 6d4b1fe commit 9b99e9e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/bib2readme.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,14 @@ def format_bibtex(entry: dict) -> str:
4848
return bibtex_str
4949

5050
def to_string(self) -> str:
51-
entry_str = f"- **{self.title}**\n {self.authors}\n"
51+
entry_str = f"- **{self.title}**. {self.authors}."
5252
if self.url:
53-
entry_str += f" [Link]({self.url})\n"
53+
entry_str += f" [[Link]]({self.url})"
5454
entry_str += (
55-
f"<details>\n"
56-
f"<summary>Show BibTeX</summary>\n"
57-
f"<pre><code>\n"
58-
f"{self.bibtex}\n"
59-
f"</code></pre>\n"
60-
f"</details>\n"
55+
f" <details>"
56+
f" <summary>Show BibTeX</summary>\n"
57+
f" <pre><code>{self.bibtex}</code></pre>\n"
58+
f" </details>\n"
6159
)
6260
entry_str += "\n"
6361
return entry_str

0 commit comments

Comments
 (0)