diff options
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index bb702b3..c27da11 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -450,7 +450,8 @@ TT { font-family: lucidatypewriter, lucida console, courier } all, scheme, rfc, pep, selfdot, name = match.groups() if scheme: - results.append('<a href="%s">%s</a>' % (all, escape(all))) + url = escape(all).replace('"', '"') + results.append('<a href="%s">%s</a>' % (url, url)) elif rfc: url = 'http://www.rfc-editor.org/rfc/rfc%d.txt' % int(rfc) results.append('<a href="%s">%s</a>' % (url, escape(all))) |