On Sat, Dec 31, 2016 at 3:40 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr>
wrote:

Besides, using `org-export-filter-final-output-functions' seems easier
> than your set up.
>

This approach works too. The following code produces exactly the same
result as what I posted earlier:

(defun ox-texinfo+--untabify (string back-end _)
  (if (eq back-end 'texinfo)
      (replace-regexp-in-string
       "^\t+"
       (lambda (match)
         (make-string (* (length match) 8) ?\s))
       string)
    string))

(add-to-list 'org-export-filter-final-output-functions
             'ox-texinfo+--untabify)

Reply via email to