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

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

[elpa] externals/org-remark 7367b7d056 20/37: fix: Text cut off in notes


From: ELPA Syncer
Subject: [elpa] externals/org-remark 7367b7d056 20/37: fix: Text cut off in notes if the highlight spans across two lines #56
Date: Sat, 14 Jan 2023 10:58:01 -0500 (EST)

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

    fix: Text cut off in notes if the highlight spans across two lines #56
    
    Thanks to GitHub user @sati-bodhi
---
 org-remark.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/org-remark.el b/org-remark.el
index f5ab1718be..7b889d5034 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -6,7 +6,7 @@
 ;; URL: https://github.com/nobiot/org-remark
 ;; Version: 1.0.5
 ;; Created: 22 December 2020
-;; Last modified: 10 January 2023
+;; Last modified: 11 January 2023
 ;; Package-Requires: ((emacs "27.1") (org "9.4"))
 ;; Keywords: org-mode, annotation, note-taking, marginal-notes, wp,
 
@@ -856,7 +856,10 @@ this function calls `org-remark-notes-setup' to prepare 
the notes
 buffer for automatic sync."
   (let* ((filename (org-remark-source-get-file-name filename))
          (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" " "
+                 (buffer-substring-no-properties beg end))))
          (notes-buf (find-file-noselect (org-remark-notes-get-file-name)))
          (source-buf (current-buffer))
          (line-num (org-current-line beg))



reply via email to

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