summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2017-04-16 09:33:33 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-04-16 09:33:33 +0200
commitde7e495e4616505ceb8d9532e6378f1ad46b08ff (patch)
tree6e0ff197fa15f53dd3a314668bcc3bab89ea9115
parent93972c9845b049806ccd8e9e21196cfb4f6f6d0f (diff)
downloadorg-mode-de7e495e4616505ceb8d9532e6378f1ad46b08ff.tar.gz
ox-latex: Remove unwanted indentation in horizontal rules
* lisp/ox-latex.el (org-latex-horizontal-rule): Add "\noindent" macro before the horizontal rule. Reported-by: Justen Rickert <justenrickert@gmail.com> <http://permalink.gmane.org/gmane.emacs.orgmode/113092>
-rw-r--r--lisp/ox-latex.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index b7ba075..f11a8a6 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -2052,8 +2052,8 @@ CONTENTS is nil. INFO is a plist holding contextual information."
"\n")
(org-latex--wrap-label
horizontal-rule
- (format "\\rule{%s}{%s}"
- (or (plist-get attr :width) "\\linewidth")
+ (format "\\noindent\\rule{%s}{%s}"
+ (or (plist-get attr :width) "\\textwidth")
(or (plist-get attr :thickness) "0.5pt"))
info))))