| Issue 8: | unexpected behavior |
‹ Prev
5 of 5
|
| 1 person starred this issue and may be notified of changes. | Back to list |
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...
|
|
|
|