[reportlab-users] &&&&& and >>>>> in paragraphs

Marc Stober reportlab-users@reportlab.com
Tue, 19 Aug 2003 08:34:50 -0400


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C3664E.484576A0
Content-Type: text/plain




Use this:

from xml.sax.saxutils import escape
story.append(Paragraph(escape('<font
        color="red">aaaaaa</font>'), stylesheet['Code'])

- Marc

--
Marc Stober
mstober@dalbar.com - 617-624-7155
DALBAR, Inc.
The measurement of success.




------_=_NextPart_001_01C3664E.484576A0
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE></TITLE>

<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY><FONT face=Georgia color=#000080></FONT><BR>
<P><FONT size=2>Use this:<BR><BR><STRONG><FONT color=#0000ff>from 
xml.sax.saxutils import 
escape</FONT></STRONG><BR>story.append(Paragraph(<STRONG><FONT 
color=#0000ff>escape(</FONT></STRONG>'&lt;font<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
color="red"&gt;aaaaaa&lt;/font&gt;'<FONT 
color=#0000ff><STRONG>)</STRONG></FONT>, stylesheet['Code'])<BR><BR>- 
Marc<BR><BR>--<BR>Marc Stober<BR>mstober@dalbar.com - 617-624-7155<BR>DALBAR, 
Inc.<BR>The measurement of success.<BR><BR></FONT></P></BODY></HTML>

------_=_NextPart_001_01C3664E.484576A0--