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
116aebd2
Commit
116aebd2
authored
Apr 09, 2001
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now that self.html is set and cleared by do_mode(), also set
self.endsep to the proper value there.
parent
adc93fda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lib/python/TAL/TALInterpreter.py
lib/python/TAL/TALInterpreter.py
+5
-4
No files found.
lib/python/TAL/TALInterpreter.py
View file @
116aebd2
...
@@ -167,6 +167,7 @@ class TALInterpreter:
...
@@ -167,6 +167,7 @@ class TALInterpreter:
self
.
showtal
=
showtal
self
.
showtal
=
showtal
self
.
strictinsert
=
strictinsert
self
.
strictinsert
=
strictinsert
self
.
html
=
0
self
.
html
=
0
self
.
endsep
=
"/>"
self
.
slots
=
{}
self
.
slots
=
{}
self
.
currentMacro
=
None
self
.
currentMacro
=
None
self
.
position
=
None
,
None
# (lineno, offset)
self
.
position
=
None
,
None
# (lineno, offset)
...
@@ -192,10 +193,6 @@ class TALInterpreter:
...
@@ -192,10 +193,6 @@ class TALInterpreter:
def
__call__
(
self
):
def
__call__
(
self
):
assert
self
.
level
==
0
assert
self
.
level
==
0
assert
self
.
scopeLevel
==
0
assert
self
.
scopeLevel
==
0
if
self
.
html
:
self
.
endsep
=
" />"
else
:
self
.
endsep
=
"/>"
self
.
interpret
(
self
.
program
)
self
.
interpret
(
self
.
program
)
assert
self
.
level
==
0
assert
self
.
level
==
0
assert
self
.
scopeLevel
==
0
assert
self
.
scopeLevel
==
0
...
@@ -233,6 +230,10 @@ class TALInterpreter:
...
@@ -233,6 +230,10 @@ class TALInterpreter:
def
do_mode
(
self
,
mode
):
def
do_mode
(
self
,
mode
):
assert
mode
in
(
"html"
,
"xml"
)
assert
mode
in
(
"html"
,
"xml"
)
self
.
html
=
(
mode
==
"html"
)
self
.
html
=
(
mode
==
"html"
)
if
self
.
html
:
self
.
endsep
=
" />"
else
:
self
.
endsep
=
"/>"
def
do_setPosition
(
self
,
position
):
def
do_setPosition
(
self
,
position
):
self
.
position
=
position
self
.
position
=
position
...
...
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