Function: org-texinfo-special-block

org-texinfo-special-block is a byte-compiled function defined in ox-texinfo.el.gz.

Signature

(org-texinfo-special-block SPECIAL-BLOCK CONTENTS INFO)

Documentation

Transcode a SPECIAL-BLOCK element from Org to Texinfo.

CONTENTS holds the contents of the block. INFO is a plist used as a communication channel.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-texinfo.el.gz
;;;; Special Block

(defun org-texinfo-special-block (special-block contents _info)
  "Transcode a SPECIAL-BLOCK element from Org to Texinfo.
CONTENTS holds the contents of the block.  INFO is a plist used
as a communication channel."
  (let ((opt (org-export-read-attribute :attr_texinfo special-block :options))
	(type (org-element-property :type special-block)))
    (format "@%s%s\n%s@end %s"
	    type
	    (if opt (concat " " opt) "")
	    (or contents "")
	    type)))