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
59b09255
Commit
59b09255
authored
May 14, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify code to allow multiple "false" end tags in CDATA content.
parent
faa28298
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
lib/python/TAL/HTMLParser.py
lib/python/TAL/HTMLParser.py
+1
-2
No files found.
lib/python/TAL/HTMLParser.py
View file @
59b09255
...
@@ -157,8 +157,6 @@ class HTMLParser(markupbase.ParserBase):
...
@@ -157,8 +157,6 @@ class HTMLParser(markupbase.ParserBase):
k = self.parse_starttag(i)
k = self.parse_starttag(i)
elif endtagopen.match(rawdata, i): # </
elif endtagopen.match(rawdata, i): # </
k = self.parse_endtag(i)
k = self.parse_endtag(i)
if k >= 0:
self.clear_cdata_mode()
elif _contains_at(rawdata, "<!--", i): # <!--
elif _contains_at(rawdata, "<!--", i): # <!--
k = self.parse_comment(i)
k = self.parse_comment(i)
elif _contains_at(rawdata, "<!", i): # <!
elif _contains_at(rawdata, "<!", i): # <!
...
@@ -349,6 +347,7 @@ class HTMLParser(markupbase.ParserBase):
...
@@ -349,6 +347,7 @@ class HTMLParser(markupbase.ParserBase):
self
.
handle_data
(
match
.
group
(
0
))
self
.
handle_data
(
match
.
group
(
0
))
else
:
else
:
self
.
handle_endtag
(
tag
)
self
.
handle_endtag
(
tag
)
self
.
clear_cdata_mode
()
return
j
return
j
# Overridable -- finish processing of start+end tag: <tag.../>
# Overridable -- finish processing of start+end tag: <tag.../>
...
...
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