Function: org-texinfo--prepend-anchor-maybe
org-texinfo--prepend-anchor-maybe is a byte-compiled function defined
in ox-texinfo.el.gz.
Signature
(org-texinfo--prepend-anchor-maybe CONTENTS NODE)
Documentation
Maybe prepend NODE anchor before CONTENTS.
When NODE has :name property, prepend anchor named as :name value to CONTENTS. Otherwise, return CONTENTS.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-texinfo.el.gz
(defun org-texinfo--prepend-anchor-maybe (contents node)
"Maybe prepend NODE anchor before CONTENTS.
When NODE has :name property, prepend anchor named as :name value to
CONTENTS. Otherwise, return CONTENTS."
(if-let* ((label (org-element-property :name node)))
(concat "@anchor{" label "}\n" contents)
contents))