I'm not sure if it's documented anywhere, but when I need to use @first, I always need to put it as the very first line in the body node of the @file/clean/yadayada, so:

@first #! /usr/bin/python3
@language python
@and-so-on

Hope this helps,
-->Jake

On 2/7/2017 9:13 AM, Eric S. Johansson wrote:
in my @file section I have the following:

@language python
@tabwidth -4
@first #! /usr/bin/python3
@first # a first line
<< docstring >>

@others
if __name__ == '__main__':
    main()
    # a comment

what I find saved in the output file is:

#@+leo-ver=5-thin
#@+node:alsoeric.20170202001826.1: * @file worktime1.py
#@@language python
#@@tabwidth -4
#@@first
#@@first
#@+<< docstring >>
#@+node:alsoeric.20170202004627.1: ** << docstring >>
''' program to calculate time '''
#@-<< docstring >>

#@+others

If I change the @file to @clean, I still don't get the first lines in the file. What am I missing?
--
You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to