diff --git a/product/ERP5/tests/testERP5Web.py b/product/ERP5/tests/testERP5Web.py
index ea43c3e1417547a16d2add2283164ab00869271e..213c6a73d3bcd9dfb6e8ce6345434a7b13097a4c 100644
--- a/product/ERP5/tests/testERP5Web.py
+++ b/product/ERP5/tests/testERP5Web.py
@@ -306,7 +306,7 @@ H茅 H茅 H茅!""", page.asText().strip())
       ZopeTestCase._print(message)
 
     content = '<a href="${toto}">$titi</a>'
-    asText_content = '$titi'
+    asText_content = '$titi\n'
     substituted_content = '<a href="foo">bar</a>'
     substituted_asText_content = 'bar'
     mapping = dict(toto='foo', titi='bar')