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

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

[elpa] externals/org-remark 02f2ca5c7c 12/67: fix: Text cut off if the h


From: ELPA Syncer
Subject: [elpa] externals/org-remark 02f2ca5c7c 12/67: fix: Text cut off if the highlight spans across two lines #56
Date: Sat, 22 Jul 2023 06:59:00 -0400 (EDT)

branch: externals/org-remark
commit 02f2ca5c7c1017ee97141786c6b61024d8ec791b
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>

    fix: Text cut off if the highlight spans across two lines #56
    
    Thanks to GitHub user @sati-bodhi for reporting the issue with a
    suggestion of a fix.
---
 org-remark.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/org-remark.el b/org-remark.el
index b362aac040..f7d279e260 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -923,7 +923,9 @@ beginning of source-headline, which should be one level up."
             end (overlay-end highlight)
             props (overlay-properties highlight)
             id (plist-get props 'org-remark-id)
-            text (org-with-wide-buffer (buffer-substring-no-properties beg 
end))
+            text (org-with-wide-buffer
+                  (replace-regexp-in-string "\n" " " text)
+                  (buffer-substring-no-properties beg end))
             filename (org-remark-source-get-file-name
                       (org-remark-source-find-file-name))
             line-num (org-current-line beg)



reply via email to

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