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
d0112f54
Commit
d0112f54
authored
Feb 08, 2009
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusted reStructuredText output to new docutils 0.5 version
parent
94dc3d49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
src/Products/ZReST/tests/test_ZReST.py
src/Products/ZReST/tests/test_ZReST.py
+2
-3
src/reStructuredText/tests/testReST.py
src/reStructuredText/tests/testReST.py
+2
-4
No files found.
src/Products/ZReST/tests/test_ZReST.py
View file @
d0112f54
...
@@ -68,11 +68,10 @@ class TestZReST(unittest.TestCase):
...
@@ -68,11 +68,10 @@ class TestZReST(unittest.TestCase):
resty
.
render
()
resty
.
render
()
html
=
resty
.
index_html
()
html
=
resty
.
index_html
()
s
=
'<h1>
<a id="hello-world" name="hello-world">Hello World</a>
</h1>'
s
=
'<h1>
Hello World
</h1>'
self
.
assertEqual
(
s
in
html
,
True
)
self
.
assertEqual
(
s
in
html
,
True
)
s
=
'<h1><a id="von-v-geln-und-fen" name="von-v-geln-und-fen">'
\
s
=
'<h1>Von Vgeln und fen</h1>'
'Von Vgeln und fen</a></h1>'
self
.
assertEqual
(
s
in
html
,
True
)
self
.
assertEqual
(
s
in
html
,
True
)
# ZReST should render a complete HTML document
# ZReST should render a complete HTML document
...
...
src/reStructuredText/tests/testReST.py
View file @
d0112f54
...
@@ -68,12 +68,10 @@ class TestReST(unittest.TestCase):
...
@@ -68,12 +68,10 @@ class TestReST(unittest.TestCase):
output_encoding
=
encoding
,
output_encoding
=
encoding
,
initial_header_level
=
level
)
initial_header_level
=
level
)
expected
=
'<h%d><a id="hello-world" name="hello-world">Hello World</a></h%d>'
%
\
expected
=
'<h%d>Hello World</h%d>'
%
(
level
+
1
,
level
+
1
)
(
level
+
1
,
level
+
1
)
self
.
assertEqual
(
expected
in
html
,
True
)
self
.
assertEqual
(
expected
in
html
,
True
)
expected
=
'<h%d><a id="von-v-geln-und-fen" name="von-v-geln-und-fen">Von Vgeln und fen</a></h%d>'
%
\
expected
=
'<h%d>Von Vgeln und fen</h%d>'
%
(
level
+
1
,
level
+
1
)
(
level
+
1
,
level
+
1
)
self
.
assertEqual
(
expected
in
html
,
True
)
self
.
assertEqual
(
expected
in
html
,
True
)
def
testWithSingleSubtitle
(
self
):
def
testWithSingleSubtitle
(
self
):
...
...
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