Hi Richard

Richard Ash wrote:
I have a probable bug, and a more general question about the possibilities of 
customising the output of mwlib.rl
Bug: if I put
text_align = TA_LEFT
You need to import the file where TA_LEFT is defined before you can use it:

from reportlab.lib.enums import TA_LEFT
text_align = TA_LEFT



The more general question is about the different section styles defined in pdfstyles.py. There are lots of blocks like if mode == 'license':
        style.fontSize = 5
        style.leading = 1
        style.spaceBefore = 0

Is there any way I can disagree and (e.g.) change the font size for license 
blocks because I want it bigger? It seems if I just over-ride it 
unconditionally, then I will affect all text, but where do I get an object to 
test against from, or is the customconfig.py mechanism not designed for this?
I must admit that currently you can't use the customconfig.py file to change font size of the license for example. One could argue that the pdfstyles file is poorly designed - but I am somewhat hesitant to change it.

The only solution which seems "practical" to me is to directly edit the pdfstyles.py file. If you want to do this in a somewhat painless manner you should probably use git to check out the mwlib.rl repository. If you go this route you should familiarize yourself with git and python (a little bit at least - indentation matters for example)

So stfw and rtfm ;)

Good starting points for that are:

* http://docs.python.org/tutorial/
* http://git-scm.com/

You'll also find countless well written tutorials for git elsewhere.

And of course you are always welcome to ask here.

Regards,
Volker

--
volker haas                 brainbot technologies ag
fon +49 6131 2116394        boppstraße 64
fax +49 6131 2116392        55118 mainz
[email protected]    http://www.brainbot.com/

--
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mwlib?hl=en.

Reply via email to