From de7e495e4616505ceb8d9532e6378f1ad46b08ff Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 16 Apr 2017 09:33:33 +0200 Subject: [PATCH] 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 --- lisp/ox-latex.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index b7ba07575..f11a8a63a 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)))) -- 2.11.4.GIT