Function: orgtbl-to-table.el

orgtbl-to-table.el is a byte-compiled function defined in org-table.el.gz.

Signature

(orgtbl-to-table.el TABLE PARAMS)

Documentation

Convert the orgtbl-mode(var)/orgtbl-mode(fun) TABLE into a table.el table.

TABLE is a list, each entry either the symbol hline for a horizontal separator line, or a list of fields for that line. PARAMS is a property list of parameters that can influence the conversion. All parameters from orgtbl-to-generic are supported.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-table.el.gz
(defun orgtbl-to-table.el (table params)
  "Convert the `orgtbl-mode' TABLE into a table.el table.
TABLE is a list, each entry either the symbol `hline' for
a horizontal separator line, or a list of fields for that line.
PARAMS is a property list of parameters that can influence the
conversion.  All parameters from `orgtbl-to-generic' are
supported."
  (with-temp-buffer
    (insert (orgtbl-to-orgtbl table params))
    (org-table-align)
    (goto-char (point-min))
    (while (search-forward "-|" nil t)
      (replace-match "-+"))
    (goto-char (point-min))
    (while (search-forward "|-" nil t)
      (replace-match "+-"))
    (buffer-string)))