gemini.git

going-flying.com gemini git repository

summary

tree

log

refs

e2e4bd10421810f1fd491a609b09d69b3ca0a614 - Matthew Ernisse - 1612580910

link to homepage

view tree

view raw

diff --git a/cgi-bin/converter b/cgi-bin/converter
index b7c61fa..66cceb5 100755
--- a/cgi-bin/converter
+++ b/cgi-bin/converter
@@ -148,9 +148,9 @@ def result_table(cgi, input, b, d, h):
 	global BACK_LINK
 	cgi.Response.Ok('text/gemini')
 
-	output = f'# Input\n{input}\n\n'
+	output = f'# Input\n{input}{ender(d)}'
 	output += f'## Binary Representation\n{b}\n\n'
-	output += f'## Decimal Representation\n{d}{ender(d)}'
+	output += f'## Decimal Representation\n{d}\n\n'
 	output += f'## Hexadecimal Representation\n0x{h}\n\n'
 	output += f'=> {BACK_LINK}	Back\n'
 	output += f'=> /	Home'
diff --git a/index.gmi b/index.gmi
index 9b0b3a8..6db72fa 100644
--- a/index.gmi
+++ b/index.gmi
@@ -19,6 +19,7 @@ For the interested this capsule is running on Molly Brown in a Docker container,
 => /cgi-bin/bofh.py	BOFH-style Excuse Server
 => /cgi-bin/rules.py	Random Ferengi Rule of Acquisition
 => /cgi-bin/vfdsay.py	VFD Message Display
+=> /cgi-bin/converter/	Binary, Decimal, Hex Converter
 => /~mernisse/01.gmi	(About the VFD message display)
 
 ## Feeds