On Sunday, April 19, 2020 at 9:53:18 AM UTC+2, lewis wrote: > > > It is this difference which causes the promote-child-bodies script to copy > the body text back without linefeeds. Would it be more consistent for a > linefeed to precede </t> always? Why is the last line treated differently? > I am not an expert at all on linefeed terminology so apologies if this is > a poor suggestion. > > Regards > Lewis > > The node's body can contain whatever you wish. If you wish body to have a linefeed at the end of the body, you can add it yourself. If you don't want it you can delete it using your keyboard or script. I guess it is more natural to create linefeed at the end of body when you type it using keyboard. When you create bodies using script it is easier to forget about this last linefeed. But you certainly can add it and delete it both using keyboard and the script. When combining bodies you should bare this in your mind and decide on your strategy. You can either normalize all bodies to have at least one linefeed at the end and join them without adding an extra linefeed, or you can strip the last linefeed from all bodies that have it and then join them using linefeed as a separator.
Leo's file format represent node bodies correctly. If the body doesn't have linefeed at the end, there will be no linefeed before </t>, and if it has there will be linefeed before closing </t>. That way Leo keeps the original content of your bodies. HTH Vitalije -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/33f22d6a-006b-445d-93ac-6ab5ea72e194%40googlegroups.com.
