I stumbled upon Leo, got very excited with the possibility and tried
to write my first python program in Leo.

This is what I have in headlines:

    -- @chapters
    -- @thin new.py
        -- class Trial
            --  __init__
            --  display

Here is the body of different headlines:
--------------------------Headline @thin
new.py:--------------------------
@language python
@all

--------------------------Headline  class
Trial:--------------------------
class Trial:
    @others

--------------------------Headline
__init__:--------------------------
def __init__(self):
    self.s = 10

--------------------------Headline  display --------------------------
def display(self):
    print self.s

----------------------------------------------------------------------------------------------------------

In python file new.py, I was expecting contents like:
--------------------------------------------------------------------------
class Trial:
    def __init__(self):
        self.s = 10
    def display(self):
        print self.s
--------------------------------------------------------------------------

However I get something like this:
--------------------------------------------------------------------------
class Trial:
    @others
def __init__(self):
    self.s = 10
def display(self):
    print self.s
--------------------------------------------------------------------------

Now I am puzzled why @others is being printed, instead of being
interpreted as directive. Also, the document says that in @language
python, indentation takes place after ':', (and I have also indented
@others), but no indentation is happening.

Any help will be highly appreciated.

Thanks,
-- sudhir


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