On Tue, Jun 9, 2009 at 7:44 AM, wgw<[email protected]> wrote:

> If I have a definition in an outline branch:
>
> text= """ first line
> second line
> third line"""
>
> In the derived file the text will include all the tabs that are
> inserted before that outline level. So the derived code will look
> something like:
>
>     text= """ first line
>     second line
>     third line"""
> ^^^
> note the whitespace!

I know this is not an answer to your question, but do you know about
textwrap.dedent?

http://docs.python.org/library/textwrap.html#textwrap.dedent

-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" 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/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to