summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVG <vg@devys.org>2014-11-28 21:16:09 +0100
committerVG <vg@devys.org>2014-11-28 21:16:09 +0100
commit20b89a46aeeeea3790fcabd2330ad58c2f9c119b (patch)
treeb51cebb0ab2bc7a74f35928a9a6c198b61ead9a4
parent460e2bbb1dd6e2dfd519338c590aec7ab9830ecb (diff)
parente7712e97cacd601fd04b7bfd0b3084d6107a73b2 (diff)
downloadpasteme-20b89a46aeeeea3790fcabd2330ad58c2f9c119b.tar.gz
pasteme-20b89a46aeeeea3790fcabd2330ad58c2f9c119b.tar.bz2
pasteme-20b89a46aeeeea3790fcabd2330ad58c2f9c119b.zip
Merge branch 'dev' of git://0x1707.no-ip.biz/pasteme into dev
-rwxr-xr-xpasteme.py2
-rwxr-xr-xscripts/pastit.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pasteme.py b/pasteme.py
index 03cdc23..93e569b 100755
--- a/pasteme.py
+++ b/pasteme.py
@@ -10,7 +10,7 @@ from pathlib import Path
application = bottle.default_app() # application used for wsgi mode
pathbase = Path(config.pastedir)
-pygment_formater = pygments.formatters.HtmlFormatter()
+pygment_formater = pygments.formatters.HtmlFormatter(linenos="table")
if not pathbase.exists():
pathbase.mkdir(mode=0o700, parents=True)
diff --git a/scripts/pastit.py b/scripts/pastit.py
index 3a61e19..3527b4f 100755
--- a/scripts/pastit.py
+++ b/scripts/pastit.py
@@ -50,7 +50,7 @@ def get(url):
def main():
args = docopt(__doc__)
- if '://' in args["FILE"]:
+ if args["FILE"] and '://' in args["FILE"]:
print(get(args["FILE"]))
return