Function: org-odt-verse-block
org-odt-verse-block is a byte-compiled function defined in
ox-odt.el.gz.
Signature
(org-odt-verse-block VERSE-BLOCK CONTENTS INFO)
Documentation
Transcode a VERSE-BLOCK element from Org to ODT.
CONTENTS is verse block contents. INFO is a plist holding contextual information.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-odt.el.gz
;;;; Verse Block
(defun org-odt-verse-block (_verse-block contents _info)
"Transcode a VERSE-BLOCK element from Org to ODT.
CONTENTS is verse block contents. INFO is a plist holding
contextual information."
(format "\n<text:p text:style-name=\"OrgVerse\">%s</text:p>"
(replace-regexp-in-string
;; Replace leading tabs and spaces.
"^[ \t]+" #'org-odt--encode-tabs-and-spaces
;; Add line breaks to each line of verse.
(replace-regexp-in-string
"\\(<text:line-break/>\\)?[ \t]*$" "<text:line-break/>" contents))))