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
baa8fbb1
Commit
baa8fbb1
authored
Sep 25, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add regression test for the typo-buglet Jeremy fixed, and fix the bug that
uncovered.
parent
314383c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lib/python/TAL/markupbase.py
lib/python/TAL/markupbase.py
+1
-1
lib/python/TAL/tests/test_htmlparser.py
lib/python/TAL/tests/test_htmlparser.py
+6
-0
No files found.
lib/python/TAL/markupbase.py
View file @
baa8fbb1
...
...
@@ -195,7 +195,7 @@ class ParserBase:
j = rawdata.find("
)
", j) + 1
else:
return -1
while rawdata[j:j+1]
in string.whitespace
:
while rawdata[j:j+1]
.isspace()
:
j = j + 1
if not rawdata[j:]:
# end of buffer, incomplete
...
...
lib/python/TAL/tests/test_htmlparser.py
View file @
baa8fbb1
...
...
@@ -294,6 +294,12 @@ DOCTYPE html [
(
"endtag"
,
"script"
),
])
def
check_enumerated_attr_type
(
self
):
s
=
"<!DOCTYPE doc [<!ATTLIST doc attr (a | b) >]>"
self
.
_run_check
(
s
,
[
(
'decl'
,
'DOCTYPE doc [<!ATTLIST doc attr (a | b) >]'
),
])
# Support for the Zope regression test framework:
def
test_suite
():
...
...
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