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

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

[elpa] externals/org 3a77e59 05/85: ox-ascii: Justify correctly with ind


From: ELPA Syncer
Subject: [elpa] externals/org 3a77e59 05/85: ox-ascii: Justify correctly with indent-tabs-mode
Date: Mon, 27 Sep 2021 15:57:38 -0400 (EDT)

branch: externals/org
commit 3a77e59fc90400bcc5e23a0b5e743e2e05dff09f
Author: Morgan Willcock <mwillcock@precedence.co.uk>
Commit: TEC <tec@tecosaur.com>

    ox-ascii: Justify correctly with indent-tabs-mode
    
    * lisp/ox-ascii.el (org-ascii--justify-lines): Ensure that
    `indent-tabs-mode' is nil when applying indentation to justify lines.
    As other parts of ox-ascii use spaces for adjustments, if
    `indent-tabs-mode' is respected, ox-ascii will produce an an
    inconsistently formatted export.  It's preferable to just force spaces
    by binding `indent-tabs-mode' to nil.
    
    TINYCHANGE
---
 lisp/ox-ascii.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el
index d1762d4..1765426 100644
--- a/lisp/ox-ascii.el
+++ b/lisp/ox-ascii.el
@@ -480,6 +480,9 @@ HOW determines the type of justification: it can be `left',
     (insert s)
     (goto-char (point-min))
     (let ((fill-column text-width)
+          ;; Ensure that `indent-tabs-mode' is nil so that indentation
+          ;; will always be achieved using spaces rather than tabs.
+          (indent-tabs-mode nil)
          ;; Disable `adaptive-fill-mode' so it doesn't prevent
          ;; filling lines matching `adaptive-fill-regexp'.
          (adaptive-fill-mode nil))



reply via email to

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