emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3eb4e0d: Escape ampersand in table.el LaTeX output


From: Reuben Thomas
Subject: master 3eb4e0d: Escape ampersand in table.el LaTeX output
Date: Sun, 13 Sep 2020 13:10:20 -0400 (EDT)

branch: master
commit 3eb4e0db5ce247f8396daac3156087fbb7aefbd4
Author: Reuben Thomas <rrt@sc3d.org>
Commit: Reuben Thomas <rrt@sc3d.org>

    Escape ampersand in table.el LaTeX output
    
    * 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el
index cfe6ce5..c7bf687 100644
--- a/lisp/textmodes/table.el
+++ b/lisp/textmodes/table.el
@@ -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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]