Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
c47b5842
Commit
c47b5842
authored
Jun 24, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be more XHTML-friendly.
parent
3f089a78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/python/StructuredText/ClassicStructuredText.py
lib/python/StructuredText/ClassicStructuredText.py
+5
-5
No files found.
lib/python/StructuredText/ClassicStructuredText.py
View file @
c47b5842
...
...
@@ -229,9 +229,9 @@ def structure(list):
class
Table
:
CELL
=
' <
TD ALIGN=CENTER COLSPAN=%i>%s</TD
>
\
n
'
ROW
=
' <
TR>
\
n
%s </TR
>
\
n
'
TABLE
=
'
\
n
<
TABLE BORDER=1 CELLPADDING=2>
\
n
%s</TABLE
>'
CELL
=
' <
td align="center" colspan="%i">%s</td
>
\
n
'
ROW
=
' <
tr>
\
n
%s </tr
>
\
n
'
TABLE
=
'
\
n
<
table border="1" cellpadding="2">
\
n
%s</table
>'
def
create
(
self
,
aPar
,
td_reg
=
re
.
compile
(
r'[ \t\n]*\
|
\|([^\0|]*)'
)
):
...
...
@@ -399,10 +399,10 @@ class HTML(StructuredText):
if
tagged
:
r
=
''
else
:
r
=
'<
PRE
>
\
n
'
r
=
'<
pre
>
\
n
'
for
s
in
structure
:
r
=
"%s%s
\
n
\
n
%s"
%
(
r
,
html_quote
(
s
[
0
]),
self
.
pre
(
s
[
1
],
1
))
if
not
tagged
:
r
=
r
+
'</PRE
>
\
n
'
if
not
tagged
:
r
=
r
.
rstrip
()
+
'
\
n
</pre
>
\
n
'
return
r
def
table
(
self
,
before
,
table
,
after
):
...
...
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