Fix formatting of lib/buttons.py

pull/1062/head
Igor Chubin 1 month ago
parent fb3ff589ad
commit 9055caccf6

@ -21,14 +21,20 @@ GITHUB_BUTTON_FOOTER = """
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script> <script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
""" """
def add_buttons(output): def add_buttons(output):
""" """
Add buttons to html output Add buttons to html output
""" """
return output.replace('</body>', return output.replace(
(TWITTER_BUTTON "</body>",
+ GITHUB_BUTTON (
+ GITHUB_BUTTON_3 TWITTER_BUTTON
+ GITHUB_BUTTON_2 + GITHUB_BUTTON
+ GITHUB_BUTTON_FOOTER) + '</body>') + GITHUB_BUTTON_3
+ GITHUB_BUTTON_2
+ GITHUB_BUTTON_FOOTER
)
+ "</body>",
)

Loading…
Cancel
Save