-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: geminiclient
action: commit
revision:
path_from:
revision_from: 13c44c31700994433247033cc67f86eaf1df0c0d:
path_to:
revision_to:

git.thebackupbox.net

geminiclient

git://git.thebackupbox.net/geminiclient

commit 13c44c31700994433247033cc67f86eaf1df0c0d
Author: epoch <epoch@hacking.allowed.org>
Date:   Fri Aug 21 00:48:19 2020 -0500

    forgot to not put <br/> at the end of <pre>'d lines

diff --git a/gemini2html.c b/gemini2html.c

index 11027c8ac12f8942623c0c4f39e3bf864be644d3..

index ..760143efbbc9c9f6013f54b9baf76340e093cbca 100644

--- a/gemini2html.c
+++ b/gemini2html.c
@@ -61,7 +61,7 @@ int main(int argc,char *argv[]) {
         second=first;
       }
       //need to encode the html entities for < > and "...
-      printf("<a href=\"%s\">%s</a><br/>%s",first,second,LINE_ENDING);
+      printf("<a href=\"%s\">%s</a>%s%s",first,second,pre?"":"<br/>",LINE_ENDING);
       continue;
     }
     printf("%s<br/>%s",line,LINE_ENDING);

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 18:53:06 2024