Permalink
Browse files

add form, fix typo

  • Loading branch information...
1 parent 2bceece commit 476aa93d294c806d33144718cd4f90626f3389df @rupa committed Sep 29, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 sprunge.py
View
@@ -24,19 +24,21 @@ class Index(webapp.RequestHandler):
r = 'sprunge'
def help(self, u, r):
+ f = 'data:text/html,<form action="%s" method="POST"><textarea name="%s" cols="80" rows="24"></textarea><br><button type="submit">%s</button></form>' % (u, r, r)
return """
<style> a { text-decoration: none } </style>
<pre>
sprunge(1) SPRUNGE sprunge(1)
NAME
- sprunge: command line pastebin:
+ sprunge: command line pastebin.
SYNOPSIS
&lt;command&gt; | curl -F '%s=&lt;-' %s
DESCRIPTION
add <a href='http://pygments.org/docs/lexers/'>?&lt;lang&gt;</a> to resulting url for line numbers and syntax highlighting
+ use <a href='%s'>this form</a> to paste from a browser
EXAMPLES
~$ cat bin/ching | curl -F '%s=&lt;-' %s
@@ -46,7 +48,7 @@ def help(self, u, r):
SEE ALSO
http://github.com/rupa/sprunge
-</pre>""" % (r, u, r, u, u, u)
+</pre>""" % (r, u, f, r, u, u, u)
def new_id(self):
nid = ''

0 comments on commit 476aa93

Please sign in to comment.