Skip to content

Commit

Permalink
Make printHTML() use printSupportPara() because DRY
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbuckle committed Aug 26, 2017
1 parent 7e23b78 commit 0bf2941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/scripts/bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ def printBody(mode, config, public, createdImages, deviceForBlockImage, errors):
printRefCard(config, public, createdImages, deviceForBlockImage, errors)

def printSupportPara():
print('<p>Version %s<br>Please direct questions and suggestions and support requests to <a href="https://forums.frontier.co.uk/showthread.php?t=212866">the thread on the official Elite: Dangerous forums</a>.</p>', __version__)
print('<p>Version %s<br>Please direct questions and suggestions and support requests to <a href="https://forums.frontier.co.uk/showthread.php?t=212866">the thread on the official Elite: Dangerous forums</a>.</p>' % __version__)

def printHTML(mode, config, public, createdImages, deviceForBlockImage, errors):
print('Content-Type: text/html')
Expand All @@ -733,7 +733,7 @@ def printHTML(mode, config, public, createdImages, deviceForBlockImage, errors):
print('<head><title>EDRefCard</title></head>')
print('<body>')
printBody(mode, config, public, createdImages, deviceForBlockImage, errors)
print('<p>Please direct questions and suggestions and support requests to <a href="https://forums.frontier.co.uk/showthread.php?t=212866">the thread on the official Elite: Dangerous forums</a>.')
printSupportPara()
print('<p><a href="/">Home</a>.')
print('</body>')
print('</html>')
Expand Down

0 comments on commit 0bf2941

Please sign in to comment.