[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))
- [elpa] externals/org updated (986341b -> 663255e), ELPA Syncer, 2021/09/27
- [elpa] externals/org b4ce4d6 01/85: Backport commit 25ebb9374 from Emacs, ELPA Syncer, 2021/09/27
- [elpa] externals/org d700c03 04/85: org-manual: Add referring to tables in other files, ELPA Syncer, 2021/09/27
- [elpa] externals/org d3d2e56 07/85: oc: Replace an obsolete alias, ELPA Syncer, 2021/09/27
- [elpa] externals/org 3a77e59 05/85: ox-ascii: Justify correctly with indent-tabs-mode,
ELPA Syncer <=
- [elpa] externals/org 4271f22 10/85: org-manual: Undo the last change in Shakespeare's verse, ELPA Syncer, 2021/09/27
- [elpa] externals/org 7aeadf2 02/85: Backport commit 3f9f3ba43 from Emacs, ELPA Syncer, 2021/09/27
- [elpa] externals/org ef31364 03/85: ob-tangle: Fix incorrect buff name in org-src edit, ELPA Syncer, 2021/09/27
- [elpa] externals/org c9dc660 11/85: Fix org-babel-header-args:haskell not being an alist, ELPA Syncer, 2021/09/27
- [elpa] externals/org 527da79 18/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org e626185 23/85: org-table.el: Fix usage of user-error, ELPA Syncer, 2021/09/27
- [elpa] externals/org 179ae6b 25/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org a3c912c 26/85: Fix duplicate logbook entry for repeated tasks, ELPA Syncer, 2021/09/27
- [elpa] externals/org 769a557 28/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27
- [elpa] externals/org 777c1c3 27/85: Merge branch 'bugfix', ELPA Syncer, 2021/09/27