branch: externals/auctex
commit 58bd866ebc92b34f1fe6f1129beece6bb091d7b3
Author: Mosè Giordano <[email protected]>
Date: Thu Nov 20 21:36:00 2014 +0100
Fix indentation in LaTeX-env-figure in a corner case.
* latex.el (LaTeX-env-figure): Fix indentation when there is the
\centering macro and no caption is inserted.
---
ChangeLog | 3 +++
latex.el | 3 ++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 8c8aa7b..d83ac0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2014-11-20 Mos� Giordano <[email protected]>
+ * latex.el (LaTeX-env-figure): Fix indentation when there is the
+ \centering macro and no caption is inserted.
+
* style/fontspec.el ("fontspec"): Fix fontification of
"newfontfamily" and "newfontface".
diff --git a/latex.el b/latex.el
index 7dfbb01..9e33885 100644
--- a/latex.el
+++ b/latex.el
@@ -1004,7 +1004,8 @@ transfer the job to this function."
(when center
(insert TeX-esc "centering")
(indent-according-to-mode)
- (LaTeX-newline))
+ (LaTeX-newline)
+ (indent-according-to-mode))
;; Insert caption and ask for a label, do nothing if user skips caption
(unless (zerop (length caption))
(if (member environment LaTeX-top-caption-list)