Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
59ed448b
Commit
59ed448b
authored
Oct 31, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SF patch #474485: pydoc generates some bad html, from Rich Salz.
parent
a6ca4f40
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Lib/pydoc.py
Lib/pydoc.py
+5
-5
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/pydoc.py
View file @
59ed448b
...
@@ -331,7 +331,7 @@ class HTMLDoc(Doc):
...
@@ -331,7 +331,7 @@ class HTMLDoc(Doc):
def
page
(
self
,
title
,
contents
):
def
page
(
self
,
title
,
contents
):
"""Format an HTML page."""
"""Format an HTML page."""
return
'''
return
'''
<!doctype html
public
"-//W3C//DTD HTML 4.0 Transitional//EN">
<!doctype html
PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: %s</title>
<html><head><title>Python: %s</title>
<style type="text/css"><!--
<style type="text/css"><!--
TT { font-family: lucidatypewriter, lucida console, courier }
TT { font-family: lucidatypewriter, lucida console, courier }
...
@@ -342,7 +342,7 @@ TT { font-family: lucidatypewriter, lucida console, courier }
...
@@ -342,7 +342,7 @@ TT { font-family: lucidatypewriter, lucida console, courier }
def
heading
(
self
,
title
,
fgcol
,
bgcol
,
extras
=
''
):
def
heading
(
self
,
title
,
fgcol
,
bgcol
,
extras
=
''
):
"""Format a page heading."""
"""Format a page heading."""
return
'''
return
'''
<table width="100%%" cellspacing=0 cellpadding=2 border=0>
<table width="100%%" cellspacing=0 cellpadding=2 border=0
summary="heading"
>
<tr bgcolor="%s">
<tr bgcolor="%s">
<td valign=bottom> <br>
<td valign=bottom> <br>
<font color="%s" face="helvetica, arial"> <br>%s</font></td
<font color="%s" face="helvetica, arial"> <br>%s</font></td
...
@@ -356,7 +356,7 @@ TT { font-family: lucidatypewriter, lucida console, courier }
...
@@ -356,7 +356,7 @@ TT { font-family: lucidatypewriter, lucida console, courier }
if
marginalia
is
None
:
if
marginalia
is
None
:
marginalia
=
'<tt>'
+
' '
*
width
+
'</tt>'
marginalia
=
'<tt>'
+
' '
*
width
+
'</tt>'
result
=
'''
result
=
'''
<
p><table width="100%%" cellspacing=0 cellpadding=2 border=0
>
<
table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="section"
>
<tr bgcolor="%s">
<tr bgcolor="%s">
<td colspan=3 valign=bottom> <br>
<td colspan=3 valign=bottom> <br>
<font color="%s" face="helvetica, arial">%s</font></td></tr>
<font color="%s" face="helvetica, arial">%s</font></td></tr>
...
@@ -393,7 +393,7 @@ TT { font-family: lucidatypewriter, lucida console, courier }
...
@@ -393,7 +393,7 @@ TT { font-family: lucidatypewriter, lucida console, courier }
if
i
<
len
(
list
):
if
i
<
len
(
list
):
result
=
result
+
format
(
list
[
i
])
+
'<br>
\
n
'
result
=
result
+
format
(
list
[
i
])
+
'<br>
\
n
'
result
=
result
+
'</td>'
result
=
result
+
'</td>'
return
'<table width="100%%"><tr>%s</tr></table>'
%
result
return
'<table width="100%%"
summary="list"
><tr>%s</tr></table>'
%
result
def
grey
(
self
,
text
):
return
'<font color="#909090">%s</font>'
%
text
def
grey
(
self
,
text
):
return
'<font color="#909090">%s</font>'
%
text
...
@@ -785,7 +785,7 @@ TT { font-family: lucidatypewriter, lucida console, courier }
...
@@ -785,7 +785,7 @@ TT { font-family: lucidatypewriter, lucida console, courier }
argspec
=
inspect
.
formatargspec
(
argspec
=
inspect
.
formatargspec
(
args
,
varargs
,
varkw
,
defaults
,
formatvalue
=
self
.
formatvalue
)
args
,
varargs
,
varkw
,
defaults
,
formatvalue
=
self
.
formatvalue
)
if
realname
==
'<lambda>'
:
if
realname
==
'<lambda>'
:
decl
=
'<em>lambda</em>'
title
=
'<strong>%s</strong> <em>lambda</em> '
%
name
argspec
=
argspec
[
1
:
-
1
]
# remove parentheses
argspec
=
argspec
[
1
:
-
1
]
# remove parentheses
else
:
else
:
argspec
=
'(...)'
argspec
=
'(...)'
...
...
Misc/ACKS
View file @
59ed448b
...
@@ -408,6 +408,7 @@ Kalle Svensson
...
@@ -408,6 +408,7 @@ Kalle Svensson
Hajime Saitou
Hajime Saitou
RajGopal Srinivasan
RajGopal Srinivasan
Jim St. Pierre
Jim St. Pierre
Rich Salz
Quentin Stafford-Fraser
Quentin Stafford-Fraser
Frank Stajano
Frank Stajano
Richard Stoakley
Richard Stoakley
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment