A long time ago in Leo there were two commands with similar effect extract-section and extract-method. Then they were replaced with the extract command. When extracting method or function that is included by @others directive everything is working as it should. But when for example one want to extract section that is indented then reference line <<section name>>, after extraction, is moved to the beginning of line. I would expect that the section reference should stay where it was before extraction, i.e. indented.
Searching in Leo's source I have found what should be changed. Code-->Core classes-->@file leoCommands.py-->class commands-->Command handlers...-->Edit Menu...-->Edit Body submenu-->c.extract...-->extract & helpers : line 29 is h,b,middle = ref_h,lines[1:],lines[0] but should be (IMHO): h,b,middle = ref_h, lines[1:], ' ' * ws +lines[0] ws is calculated before and it is number of spaces before section reference line I hope this would eventually be changed in future versions of Leo. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To view this discussion on the web visit https://groups.google.com/d/msg/leo-editor/-/KAX2E-Egi3AJ. 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.
