Re: Are section names case-sensitive?

14 views
Skip to first unread message
Message has been deleted

jkn

unread,
4:15 AM (14 hours ago) 4:15 AM
to leo-editor
I presume you have a typo somewhere in what you write? It's a bit hard to tell...

I haven't checked, but - why would you expect section names to be case-insensitive? ISTM they should be case-sensitive


On Wednesday, July 22, 2026 at 5:06:26 PM UTC+1 hjans...@gmail.com wrote:
If I use the section names `<< Config >>` for class definition, and `<< config >>` for object instantiation, the python file will not be written. If I change the latter to `<< konfig >>` it works ... Are section names case-sensitive? And if so, why? 

Edward K. Ream

unread,
6:30 AM (12 hours ago) 6:30 AM
to leo-e...@googlegroups.com
On Wed, Jul 22, 2026 at 11:06 AM H J <hjans...@gmail.com> wrote:

If I use the section names `<< Config >>` for class definition, and `<< config >>` for object instantiation, the python file will not be written. If I change the latter to `<< konfig >>` it works ... Are section names case-sensitive? And if so, why?  

Thanks for this question. You've found a hole in Leo's documentation.

Not only are section names case insensitive, but blanks and tabs are ignored. But in your example, Config is not the same as konfig.

You can see for yourself with a Leonine script:

print(
<<hi>>
)

with a child node whose headline is <<  H   i    >> and whose body is just 'hi'.

HTH.

Edward

H J

unread,
6:31 AM (12 hours ago) 6:31 AM
to leo-editor
@jkn You're correct: typo, my bad! (sorry). The question is:

Are section names case-INsensitive? And if so, why?


Edward K. Ream

unread,
6:39 AM (12 hours ago) 6:39 AM
to leo-editor
On Thursday, July 23, 2026 at 5:30:24 AM UTC-5 Edward K. Ream wrote:

> Thanks for this question. You've found a hole in Leo's documentation.

I have just created Leo issue #4815. Thanks for helping improve Leo!

Edward
Reply all
Reply to author
Forward
0 new messages