Yes, it makes sense. I'll go ahead and reconsider how to do it without
implication.

On Sun, Feb 16, 2025 at 12:06 AM Ihor Radchenko <yanta...@posteo.net> wrote:
>
> Lei Zhe <lzhe...@gmail.com> writes:
>
> > When a source block is indented within a list, as shown below,
> > even if I set `org-fontify-whole-block-delimiter-line` to nil, the
> > spaces before `#+begin_src` are still fontified if I have custom
> > faces for `org-block-begin-line` and `org-block-end-line`. In my
> > opinion, this is incorrect behavior; the faces should *not* be applied
> > to spaces.
> >
> > If you agree that this should be fixed, I can submit a patch
> > by modifying `org-fontify-meta-lines-and-blocks-1`.
> > Let me know your thoughts.
> >
> > ```
> > - a block list
> >    #+begin_src python
> >    print(1)
> >    #+end_src
> > ```
>
> I am not sure.
> It may depend on `org-src-preserve-indentation'.
> Also, what about src block body? Imagine that org-block face has a
> background. That background will be applied to spaces before src block
> body. Then, if you do not apply fontification to leading spaces before
> #+begin_src/end_src, it will look strange.
>
> --
> Ihor Radchenko // yantar92,
> Org mode maintainer,
> 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>

Reply via email to