[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-modern d6e8889e32 31/65: Fix indented tables
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-modern d6e8889e32 31/65: Fix indented tables |
Date: |
Mon, 7 Mar 2022 12:57:46 -0500 (EST) |
branch: externals/org-modern
commit d6e8889e32d1fbd5c2eb9dd6c67424d758e0de72
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Fix indented tables
---
org-modern.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/org-modern.el b/org-modern.el
index 135300b751..5860d8561c 100644
--- a/org-modern.el
+++ b/org-modern.el
@@ -362,6 +362,8 @@ Set to nil to disable the indicator."
(save-excursion
(let* ((beg (match-beginning 0))
(end (match-end 0))
+ (tbeg (match-beginning 1))
+ (tend (match-end 1))
;; Unique objects
(sp1 (list 'space :width 1))
(sp2 (list 'space :width 1))
@@ -390,9 +392,9 @@ Set to nil to disable the indicator."
(goto-char beg)
(when separator
(when (numberp org-modern-table-horizontal)
- (add-face-text-property beg end `(:overline ,color) 'append)
+ (add-face-text-property tbeg tend `(:overline ,color) 'append)
(add-face-text-property beg (1+ end) `(:height
,org-modern-table-horizontal) 'append))
- (while (re-search-forward "-+" end 'noerror)
+ (while (re-search-forward "[^|+]+" tend 'noerror)
(let ((a (match-beginning 0))
(b (match-end 0)))
;; TODO Text scaling breaks the table formatting since the space
is not scaled accordingly
@@ -453,7 +455,7 @@ Set to nil to disable the indicator."
(when org-modern-horizontal-rule
'(("^-\\{5,\\}$" 0 '(face org-modern-horizontal-rule display (space
:width text)))))
(when org-modern-table
- '(("^[ \t]*|.*|[ \t]*$" (0 (org-modern--table)))))
+ '(("^[ \t]*\\(|.*|\\)[ \t]*$" (0 (org-modern--table)))))
(when org-modern-block
'(("^[ \t]*#\\+begin_\\S-" (0 (org-modern--block)))
("^\\([ \t]*#\\+begin_\\)\\(\\S-+\\).*"
- [elpa] externals/org-modern b17d32c576 16/65: README rewording, (continued)
- [elpa] externals/org-modern b17d32c576 16/65: README rewording, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 6b925b71ee 19/65: Add org-modern-label-border, do not overwrite line-spacing, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 7ceca7a3cc 20/65: More beautiful checkboxes, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 58252d0955 21/65: Fix typo (Fix #4), ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 8abe22886a 22/65: Improve checkboxes, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern a37053e995 23/65: More elegant progress indicator, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 8a0bce9661 26/65: Blocks: Add wrap-prefix to support visual-line-mode, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 008f6baa8a 27/65: Improve block font locking, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern a63a427991 28/65: Fix docstring, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern d2bda1d449 29/65: Improve table editability, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern d6e8889e32 31/65: Fix indented tables,
ELPA Syncer <=
- [elpa] externals/org-modern f0532357fe 32/65: Handle upper case block keywords, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 14637f0a5f 34/65: Fix source block indicators for source blocks with empty lines, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 6b13500969 38/65: Improve docstring, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern f45be59ff5 46/65: org-modern-keyword: Configurable replacement, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern b4d6b37eba 47/65: README: Expand on the current limitations, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 5f132cd720 54/65: Fix statistics face, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 7d741dba51 60/65: Take advantage of more flexible boxes on Emacs 28, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern e13be0f433 40/65: Preserve line-prefix and wrap-prefix if org-indent-mode is enabled (Fix #7), ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 4f5d010a9f 42/65: Use en-dash for list bullets, ELPA Syncer, 2022/03/07
- [elpa] externals/org-modern 394460be40 50/65: Document minimal setup (Fix #13), ELPA Syncer, 2022/03/07