Commit 995e13c7 authored by Nicolas Delaby's avatar Nicolas Delaby

TextAreaWidget add a new line as first character of display content.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35054 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5b8dd95e
...@@ -153,7 +153,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -153,7 +153,7 @@ class TestEditorField(ERP5TypeTestCase, ZopeTestCase.Functional):
text_content -- the embedded text content text_content -- the embedded text content
""" """
html_text = to_utf8(html_text) html_text = to_utf8(html_text)
match_string = """name="field_%s" >%s</textarea>""" % (field_id, text_content) match_string = """name="field_%s" >\n%s</textarea>""" % (field_id, text_content)
if html_text.find(match_string) == -1: if html_text.find(match_string) == -1:
print html_text print html_text
print match_string print match_string
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment