]> git.eshelyaron.com Git - emacs.git/commitdiff
Escape ampersand in table.el LaTeX output
authorReuben Thomas <rrt@sc3d.org>
Sun, 13 Sep 2020 17:05:47 +0000 (18:05 +0100)
committerReuben Thomas <rrt@sc3d.org>
Sun, 13 Sep 2020 17:05:47 +0000 (18:05 +0100)
* lisp/textmodes/table.el (table--generate-source-scan-lines): Add
  ampersand '&' to the list of characters to escape in LaTeX output.

lisp/textmodes/table.el

index cfe6ce5ce6140515cc9ec679efe66bb7cf7ce28d..c7bf687a9e13e20ac1920541196b3095a709e5c5 100644 (file)
@@ -3279,7 +3279,7 @@ Currently this method is for LaTeX only."
                       (with-temp-buffer
                         (insert line)
                         (goto-char (point-min))
-                        (while (re-search-forward "\\([#$~_^%{}]\\)\\|\\(\\\\\\)\\|\\([<>|]\\)" nil t)
+                        (while (re-search-forward "\\([#$~_^%{}&]\\)\\|\\(\\\\\\)\\|\\([<>|]\\)" nil t)
                           (if (match-beginning 1)
                               (save-excursion
                                 (goto-char (match-beginning 1))