chiark / gitweb /
cgi.py: Fix documentation for `~:H' format operation.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 14 Mar 2013 01:12:09 +0000 (01:12 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 14 Mar 2013 01:12:09 +0000 (01:12 +0000)
Once upon a time it was going to do form-urlencoding, but it turns out
that quotification is much more useful.

cgi.py

diff --git a/cgi.py b/cgi.py
index 531a49c..3b3d441 100644 (file)
--- a/cgi.py
+++ b/cgi.py
@@ -230,7 +230,7 @@ class FormatHTML (F.SimpleFormatOperation):
   """
   ~H: escape output suitable for inclusion in HTML.
 
-  With `:', instead apply form-urlencoding.
+  With `:', additionally apply quotification.
   """
   def _convert(me, arg):
     if me.colonp: return html_quotify(arg)