if you are using ZPT to display the result of the method use
'structure', if you are usign DTML make sure you dont't encode the
result

if is plain text use new line character as I sad above.

regards,
Dragos

On 12/6/06, April Lekin <[EMAIL PROTECTED]> wrote:

 Hi,
 I tried that and it will print the <BR>, like this

 These IDs have Errors:<BR> 1<BR> 46 <BR> 76<BR> 45<BR>


 At 09:43 AM 12/6/2006, Roberto Benitez wrote:

add <BR> to the end of each line

 example:

 l_errorMessage = "These IDs have Errors<BR>" #ADD <BR> AT END OF HEADER
LINE
 Loop
    l_errorMessage = l_errorMessage + " %s<BR>" % (ID) #ADD <BR> AT END OF
EACH ID ENTRY
 end loop


 ----- Original Message ----
 From: April Lekin <[EMAIL PROTECTED]>
 To: zope@zope.org
 Sent: Wednesday, December 6, 2006 11:12:20 AM
 Subject: [Zope] Adding HTML to Python

 In Python I'm building this error message:

 l_errorMessage = "These IDs have Errors"
 Loop
    l_errorMessage = l_errorMessage + " %s " % (ID)
 end loop

 return l_errorMessage.

 How can I put breaks (returns) between the IDs so each ID will be
 displayed on it's own line?
 like:

 These IDs have Errors:
 1
 46
 76
 45

 _______________________________________________
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )



 Everyone is raving about the all-new Yahoo! Mail beta.
 _______________________________________________
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
   http://mail.zope.org/mailman/listinfo/zope-announce
   http://mail.zope.org/mailman/listinfo/zope-dev )
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )





--
Dragos Chirila
[EMAIL PROTECTED]
(+4) 0722 395375
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to