Wrap long lines.
This commit is contained in:
parent
c0f4c8eae4
commit
6c017f3b96
4
av98.py
4
av98.py
|
@ -24,6 +24,7 @@ import socket
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
|
import textwrap
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
import ssl
|
import ssl
|
||||||
import sys
|
import sys
|
||||||
|
@ -207,6 +208,7 @@ class GeminiClient(cmd.Cmd):
|
||||||
"ipv6" : True,
|
"ipv6" : True,
|
||||||
"timeout" : 10,
|
"timeout" : 10,
|
||||||
"gopher_proxy" : "localhost:1965",
|
"gopher_proxy" : "localhost:1965",
|
||||||
|
"width" : 80,
|
||||||
"auto_follow_redirects" : True,
|
"auto_follow_redirects" : True,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -486,7 +488,7 @@ Slow internet connection? Use 'set timeout' to be more patient.""")
|
||||||
except:
|
except:
|
||||||
self._debug("Skipping possible link: %s" % line)
|
self._debug("Skipping possible link: %s" % line)
|
||||||
else:
|
else:
|
||||||
tmpf.write(line + "\n")
|
tmpf.write(textwrap.fill(line, self.options["width"]) + "\n")
|
||||||
tmpf.close()
|
tmpf.close()
|
||||||
|
|
||||||
self.lookup = self.index
|
self.lookup = self.index
|
||||||
|
|
Loading…
Reference in New Issue