On Wed, Jul 7, 2010 at 8:06 AM, Edward K. Ream <[email protected]> wrote:
> On Mon, Jul 5, 2010 at 2:33 PM, Brian Theado <[email protected]> wrote:
>> On Windows, using Leo trunk from a few days ago, I get "error: class
>> class does not end in a newline; one will be added [nl]" on what seems
>> to be every imported java chunk (java was the first an only thing I've
>> tried to import).
>
>
> Thanks for this report.  I'll fix it immediately.

The attempted fix is on the trunk at rev 3153.  I say "attempted"
because I simply stripped newlines just before sending the string to
the Java importer.

This won't fix your script, because the fix happens before calling scanJavaText.

Please let me know how this works for you.

Edward

P.s.  It often not necessary to import leo files in scripts.  Rather than:

    import leo.core.leoImport
    i = leo.core.leoImport.leoImportCommands (c)

it is better style to do:

    i = c.importCommands

In other words, the commander c has ivars that point to all of its
subcommanders.

EKR

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