User`s guide

12 Classes – Alphabetical List
12-36
Method Purpose
Use CharEntity.append in a similar way
to how you use ExternalLink.append.
clone
Use CharEntity.clone in a similar way
to how you use Paragraph.clone.
Clone this character entity.
Examples
Append a British Pound Sign
import mlreportgen.dom.*;
doctype = 'html';
d = Document('test',doctype);
p = Paragraph(CharEntity('pound'));
append(d,p);
append(p,'3');
close(d);
rptview('test',doctype);
Append Two Nonbreaking Spaces
import mlreportgen.dom.*;
doctype = 'html';
d = Document('test',doctype);
p = Paragraph('Some text');
append(d,p);
ce = CharEntity('nbsp',5);
append(p,ce);
append(p,'more text after five blank spaces');
close(d);
rptview('test',doctype);
See Also
mlreportgen.dom.Paragraph | mlreportgen.dom.Text