On Sat, Apr 19, 2008 at 9:21 AM, zpcspm <[EMAIL PROTECTED]> wrote:

>
> When writing Python code in the body pane, I see the cursor position
> so I can watch the line length to not exceed a certain value. However,
> when a line gets written into a derived file, its length may increase (due
> to indentation) and pylint complains about long lines. This is a situation
> I'd like to avoid. Any suggestions?


Interesting question.

Let us define p.fileLevel() for any position p as follows:  p.fileLevel() is
0 if p is not a descendant of any kind of @file node.  Otherwise, suppose
root is the position of the enclosing @file node (or @thin node, etc.)
p.fileLevel() is p.level() - root.level() and the "effective" column is the
node's column plus p.fileLevel() * c.tab_width. This could be displayed in
the status line.

Anyone want to try?

Edward

--~--~---------~--~----~------------~-------~--~----~
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