Slava Barinov <raysl...@gmail.com> writes: > Okay, in that case we can just merge two loops into one and filter out the > #+TBLFM line. This version works for me. > + (when (and (string-match-p "^#" (substring-no-properties line)) > + (not (string-match-p "^#\\+TBLFM:" > (substring-no-properties line)))) > + (insert line "\n")))
What if there is no :tblfm parameter provided? -- 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>