My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 8: unexpected behavior
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by sfornengo, May 18, 2008
t = Template()
t.learn('<html><p>coucou</p><b>this and that</b></html>')
t.learn('<html><p>kiki</p><b>this and that</b></html>')
t.learn('<html><b>me and you</b></html>')
print t.as_text('!')
>>> <html><!b>! and !</b></html>

while we expect:
>>> <html>!<b>! and !</b></html>
that can only be obtain appending a ' ' in the last learn:
t.learn('<html> <b>me and you</b></html>')

so, learning html template in real world quickly goes wrong...


Sign in to add a comment

Hosted by Google Code