[reportlab-users] platypus.para module

Stephan Diehl reportlab-users@reportlab.com
Tue, 8 Apr 2003 16:36:58 +0200


Hi all,

I'm new to your excelent reportlab tool and are quite happy with everything 
I've seen so far. Please be kind if my question/suggestion is answered 
already...

I'm working on a xml (specific dtd) pdf converter and realized that the 
platypus.para module is doing already most of the work :-)
I just missed missed the possibility to tag a mono spaced inline region 
(<tt>some text</tt>).
I just took the liberty to add the following method to
my platypus.para.Para:

    def compile_tt(self, attdict, content, extra, program):
        (f,b,i) = self.shiftfont(program, face="Courier")
        for e in content:
            self.compileComponent(e, program)
        self.shiftfont(program, face=f)

Could this be added to the release version?

Thanks for your patience

Stephan