Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 655 by [email protected]: \n and \t are not interpreted after
building of test data doc from testdoc.py
http://code.google.com/p/robotframework/issues/detail?id=655
Hi,
After building of test data documentation from testdoc.py
(Test data documentation tool) the contents of block [documentation] are
not correctly returned.
Indeed, \n and \t are not interpreted in the generated document.
- Difficult reading.
- Bad structure of test description (documentation).
My punctual bypassing consists in replacing \n by <br/> and \t by ' ' when
the file is generated :
A the end of methode serialize_test_doc I added the following lines :
#
# 07.09.2010 - P. DJOUOB
# ***PATCH***
# Replacement of \n by <br/> and \t par ' '
#
f_in = open(outpath,'r')
c_proc = f_in.read()
c_proc = c_proc.replace('\\'+'n','<br/>')
c_proc = c_proc.replace('\\'+'t','\t')
f_in.close()
f_in = open(outpath,'w')
f_in.write(c_proc)
f_in.close()
Best regards
Patrick