URI: 
       Fix pdf output. - gopher-web-gateway - A simple gopher gateway for the web generating TXT or PDF output.
  HTML git clone git://bitreich.org/gopher-web-gateway git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-web-gateway
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
   DIR LICENSE
       ---
   DIR commit 7602322ddca92c213c01fd0871446ac4e5d7b02e
   DIR parent 15a318d99734b0105d756339d60b0c206bddd712
  HTML Author: Christoph Lohmann <20h@r-36.net>
       Date:   Tue,  6 Jan 2026 20:56:33 +0100
       
       Fix pdf output.
       
       Diffstat:
         M pdf/index.cgi                       |       9 +++++----
       
       1 file changed, 5 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/pdf/index.cgi b/pdf/index.cgi
       @@ -73,10 +73,11 @@ def main(args):
                        sys.stdout.flush()
                        return 1
        
       -        page = cmds[1:]
       -        pdf = uri2pdf(page))
       -        g_content = pdf.content.replace(mw_replace.encode("utf-8"),\
       -              g_uri.encode("utf-8"))
       +        pdf = uri2pdf(page)
       +        # TODO replace links to web gateway.
       +        #g_content = pdf.content.replace(mw_replace.encode("utf-8"),\
       +        #      g_uri.encode("utf-8"))
       +        g_content = pdf
                sys.stdout.buffer.write(g_content)
                sys.stdout.flush()
                return 0