[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-real 6edfdeca01 049/188: Whitespace cleanup
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-real 6edfdeca01 049/188: Whitespace cleanup |
Date: |
Sun, 5 May 2024 22:55:52 -0400 (EDT) |
branch: externals/org-real
commit 6edfdeca01be38cf3f257230781dd61d29d4e646
Author: Amy Grinn <grinn.amy@gmail.com>
Commit: Amy Grinn <grinn.amy@gmail.com>
Whitespace cleanup
---
org-real.el | 33 ++++++++++++++++-----------------
1 file changed, 16 insertions(+), 17 deletions(-)
diff --git a/org-real.el b/org-real.el
index ae3b64965b..1c7e875044 100644
--- a/org-real.el
+++ b/org-real.el
@@ -250,7 +250,6 @@ ORIG is `org-insert-link', ARGS are the arguments passed to
it."
(when (string= (org-element-property :type old-link) "real")
(setq old-containers (reverse (org-real--parse-url
(org-element-property
:raw-link old-link))))
-
(when-let* ((new-index 0)
(old-index (seq-position
old-containers
@@ -639,7 +638,7 @@ PREV must already existing in PARENT."
(setq cur-y prev-y)
(setq cur-behind prev-behind)
(setq cur-in-front prev-in-front))))))
-
+
(if (and prev (member rel '("in" "on" "behind" "in front of")))
(progn
(oset box :parent prev)
@@ -788,7 +787,7 @@ of BOX."
(setq next-y match-y)
(setq next-behind match-behind)
(setq next-in-front match-in-front)))
-
+
(oset next :rel-box match)
(if (member rel '("in" "on" "behind" "in front of"))
(org-real--flex-add next match world)
@@ -862,22 +861,22 @@ that the width of WORLD is kept below 80 characters if
possible."
"Make a bracket link, consisting of LINK and DESCRIPTION.
LINK is escaped with backslashes for inclusion in buffer."
(let* ((zero-width-space (string ?\x200B))
- (description
- (and (org-string-nw-p description)
- ;; Description cannot contain two consecutive square
- ;; brackets, or end with a square bracket. To prevent
- ;; this, insert a zero width space character between
- ;; the brackets, or at the end of the description.
- (replace-regexp-in-string
- "\\(]\\)\\(]\\)"
- (concat "\\1" zero-width-space "\\2")
- (replace-regexp-in-string "]\\'"
- (concat "\\&" zero-width-space)
- (org-trim description))))))
+ (description
+ (and (org-string-nw-p description)
+ ;; Description cannot contain two consecutive square
+ ;; brackets, or end with a square bracket. To prevent
+ ;; this, insert a zero width space character between
+ ;; the brackets, or at the end of the description.
+ (replace-regexp-in-string
+ "\\(]\\)\\(]\\)"
+ (concat "\\1" zero-width-space "\\2")
+ (replace-regexp-in-string "]\\'"
+ (concat "\\&" zero-width-space)
+ (org-trim description))))))
(if (not (org-string-nw-p link)) description
(format "[[%s]%s]"
- (org-link-escape link)
- (if description (format "[%s]" description) "")))))
+ (org-link-escape link)
+ (if description (format "[%s]" description) "")))))
(defun org-real--parse-url (str)
- [elpa] externals/org-real 4d86ca8c44 160/188: Merge branch 'next' into 'main', (continued)
- [elpa] externals/org-real 4d86ca8c44 160/188: Merge branch 'next' into 'main', ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 1fa40be2c7 006/188: More edge cases, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 13502c70e2 018/188: Modified logic to allow multiple children, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real e5b21825e3 019/188: Updated preposition list, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real ea82c415f2 003/188: Added primary slot to color last element in url, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 5ae3174c55 001/188: initial commit, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 51bbcc313a 028/188: Cleaned up hooks, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 101d6c9899 034/188: Added org-real-pkg for multifile package, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real d84a2a83f8 046/188: Updated readme, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real b0f741198d 044/188: Rearranging, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 6edfdeca01 049/188: Whitespace cleanup,
ELPA Syncer <=
- [elpa] externals/org-real c49cce501d 037/188: Check for compiler warnings in CI/CD pipeline, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real de8dc5a6c9 051/188: Added children when following a link, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 38dff3d9fe 055/188: More edge cases, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 68f4ecfc29 071/188: org-real-headlines; Added more keys to Org Real mode, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 24124c2d5b 067/188: Typos, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 5363249fc7 069/188: Using save-excursion when applying changes, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real b980851142 074/188: Org real headlines takes over current window, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 839b953a2f 087/188: Removed reference to org-collect-keywords, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real 8321f7feff 088/188: # `org-real-headlines`, ELPA Syncer, 2024/05/05
- [elpa] externals/org-real f260ca8e21 098/188: Bump version, ELPA Syncer, 2024/05/05