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>
This commit is contained in:
Nicolas Goaziou 2017-04-16 09:33:33 +02:00
parent 93972c9845
commit de7e495e46

View file

@ -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))))