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 (or
              ;; See `org-texinfo--split-definition'
              (org-element-property :ox-texinfo--options special-block)
              (org-export-read-attribute :attr_texinfo special-block :options)))
	(type (org-element-property :type special-block)))
    (org-texinfo--prepend-anchor-maybe
     (format "@%s%s\n%s@end %s"
	     type
	     (if opt (concat " " opt) "")
	     (or contents "")
	     type)
     special-block)))