Hi Nathan, Nathan Trapuzzano <nbt...@nbtrap.com> writes:
> Converting \vert and \vert{} when exporting an Org table to csv or tsv does > not > properly convert them to the vertical bar. Instead, they are retained > literally. A hackish patch like this one fixes this, but it's not general enough. Also, converting entities in tables is prone to false-positives, so let's live with this limitation until we generalize the way entities are handled. Best,
diff --git a/lisp/org.el b/lisp/org.el index 04bb2e9..a366f95 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -20030,8 +20030,12 @@ With prefix arg UNCOMPILED, load the uncompiled versions." (defun org-quote-csv-field (s) "Quote field for inclusion in CSV material." (if (string-match "[\",]" s) - (concat "\"" (mapconcat 'identity (split-string s "\"") "\"\"") "\"") - s)) + (setq s (concat "\"" (mapconcat 'identity (split-string s "\"") "\"\"") "\""))) + (if (string-match "\\\\\\([a-zA-Z]+[0-9]*\\)\\({}\\)?" s) + (setq s (replace-match + (org-entity-get-representation + (match-string 1 s) 'ascii) t t s 0))) + s) (defun org-force-self-insert (N) "Needed to enforce self-insert under remapping."
-- Bastien