No Wayman <iarchivedmywholel...@gmail.com> writes: > When on an empty line before a source block, org-in-src-block-p > correctly returns nil. > However, when on an empty line after a source block, it returns t. > This is reproducible on my end with both the built-in version of > Org and 9.7-pre.
This is not a bug - Org considers blank lines after element as a part of it. This includes source blocks. If you want to check if point is inside source block code, use INSIDE argument. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>