emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex 58bd866 28/36: Fix indentation in LaTeX-env-figu


From: Stefan Monnier
Subject: [elpa] externals/auctex 58bd866 28/36: Fix indentation in LaTeX-env-figure in a corner case.
Date: Fri, 28 Nov 2014 17:25:50 +0000

branch: externals/auctex
commit 58bd866ebc92b34f1fe6f1129beece6bb091d7b3
Author: Mosè Giordano <address@hidden>
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  <address@hidden>
 
+       * 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)



reply via email to

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