Hi, Patch applied and tested -- looks good! Thanks.
Annotations now work again both inside and at the end of paragraphs and list items, without introducing unwanted paragraph breaks or swallowing wanted ones. I haven't looked specifically for corner cases, but I've successfully exported a fairly long document with lots of annotations. Minor cosmetic annoyance: An extra space is inserted before the annotation. Pending the introduction of a dedicated syntax, could we have this fix in master please? Yours, Christian Nicolas Goaziou writes: > Hello, > > Bastien <b...@altern.org> writes: > >> okay, I reverted my wrong fixes. I'll let Nicolas have a look. > > I attach a patch (hardly tested) for that. Does it work as expected? > >> I would not favor a solution that allows more #+begin_ blocks to >> be inlined. > > Neither would I. Blocks are containers. > >> The proper way to handle this is to introduce a new syntax for >> inlined annotations and to treat them appropriately in exporters. >> >> Since we have both #+begin_src and src_<lang>{...} I'd suggest >> having annotation_{...} or something similar. > > I would suggest [annotation:label] or [note:label] a dedicated section > for contents, much like footnotes (aren't they just special footnotes, > after all?). That way, they can be inlined while still being able to > contain paragraphs. > >> The LaTeX exporter could use \marginpar{...} and the HTML back-end >> could make them appear when hovering with the mouse on the annotated >> parts (just an idea.) >> >> Maybe we will have to live with the current "regression" for 8.0 >> and implement the new syntax for 8.1. Or for 8.0, if Nicolas thinks >> the change is okay and not too error prone. > > > Regards,