Parcourir la source

ox-texinfo: Add missing support for center blocks

* lisp/ox-texinfo.el (org-texinfo-center-block): Add missing support.
Nicolas Goaziou il y a 6 ans
Parent
commit
ba99d76a4f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lisp/ox-texinfo.el

+ 1 - 1
lisp/ox-texinfo.el

@@ -706,7 +706,7 @@ contextual information."
   "Transcode a CENTER-BLOCK element from Org to Texinfo.
 CONTENTS holds the contents of the block.  INFO is a plist used
 as a communication channel."
-  contents)
+  (replace-regexp-in-string "\\(^\\).*?\\S-" "@center " contents nil nil 1))
 
 ;;;; Clock