Function: org-odt--encode-tabs-and-spaces

org-odt--encode-tabs-and-spaces is a byte-compiled function defined in ox-odt.el.gz.

Signature

(org-odt--encode-tabs-and-spaces LINE)

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-odt.el.gz
;;;; Plain Text

(defun org-odt--encode-tabs-and-spaces (line)
  (replace-regexp-in-string
   "\\(\t\\| \\{2,\\}\\)"
   (lambda (s)
     (if (string= s "\t") "<text:tab/>"
       (format " <text:s text:c=\"%d\"/>" (1- (length s)))))
   line))