Hey Kristoffer, Thanks for your report and apologies for the delay.
On 2021-11-20 20:18, Kristoffer wrote: > I've been testing out org-babel-examplify-region in my bookshelf > file to mark excerpts from books, but there's an issue I have > encountered. If there is a #+end_example after the currently marked > region, once you run org-babel-examplify-region, it does not create > a #+end_example at the end of the marked region properly unless the > last line marked includes the line end. An example is below: > > This is text, > that is marked. > > --8<-- > > Marking this text: > > This is text, > that is marked. > > And running org-babel-examplify-region on the marked region results > in: > > #+begin_example > This is text, > that is marked.#+end_example > > Which is not a valid example block. > --8<-- > Behavior for better usability would be to place it onto a new line > if other text is present on the same line as the marked region > end. E.g. > > #+begin_example > This is text, > that is marked. > #+end_example This bug still happens on main if you set, e.g. (setopt org-babel-min-lines-for-block-output 0) Confirmed. Thanks, -- Jacob S. Gordon [email protected] Please don’t send me HTML emails or MS Office/Apple iWork documents. https://useplaintext.email/#etiquette https://www.fsf.org/campaigns/opendocument
