projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9aa499
)
Escape ampersand in table.el LaTeX output
author
Reuben Thomas
<rrt@sc3d.org>
Sun, 13 Sep 2020 17:05:47 +0000
(18:05 +0100)
committer
Reuben 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
patch
|
blob
|
history
diff --git
a/lisp/textmodes/table.el
b/lisp/textmodes/table.el
index cfe6ce5ce6140515cc9ec679efe66bb7cf7ce28d..c7bf687a9e13e20ac1920541196b3095a709e5c5 100644
(file)
--- 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))