wolverine2k / crunchy

Automatically exported from code.google.com/p/crunchy
0 stars 0 forks source link

output containers r'\n' (or something else similar) are not escaped. #151

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open crunchy
2. find a Interpreter (for example goto crunchy_tutor/interpreter_en.html)
3. type  print r'd:\develop\tools\next\row\x.py' 

What is the expected output? 
>>> print r'd:\develop\tools\next\row\x.py' 
d:\develop\tools\next\row\x.py

What do you see instead?
>>> print r'd:develop ools 
ext 
owx.py' 
d:develop 
ools 
ext 
owx.py

I think we can fix this by add 
    in_to_browser = in_to_browser.replace('\\', r'\\')  
in function push_input

    data = data.replace('\\',r'\\') 
in function ThreadBuffer.write after    if self.__redirect(uid):

Original issue reported on code.google.com by Filia....@gmail.com on 4 Aug 2008 at 1:52

GoogleCodeExporter commented 8 years ago
Good catch!  And good fix :-)

Incorporated your changes in the trunk and in andre's branch in revision 895. 
Changing the status to Fixed.

Original comment by andre.ro...@gmail.com on 4 Aug 2008 at 8:28