3 ms·
You should rewrite hyphenate_html as a walker rather than a recursion, because Python has a stack, and arbitrary input could make you reach max recursion. http
by jdunck 17y ago
You should rewrite hyphenate_html as a walker rather than a recursion, because Python has a stack, and arbitrary input could make you reach max recursion.
http://github.com/fortes/softhyphen/blob/master/hyphenate_html.py#L49 http://github.com/fortes/softhyphen/blob/master/hyphenate_ht...
- fortes 17y agoThanks for the tip, I'm still a python novice.