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

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

[elpa] externals/yaml 7783d802b0 102/124: Don't remove all properties, j


From: ELPA Syncer
Subject: [elpa] externals/yaml 7783d802b0 102/124: Don't remove all properties, just yaml-n
Date: Fri, 29 Nov 2024 16:00:08 -0500 (EST)

branch: externals/yaml
commit 7783d802b075a7d49e70766b3845c84c710fa8b6
Author: Zachary Romero <zacromero@posteo.net>
Commit: Zachary Romero <zacromero@posteo.net>

    Don't remove all properties, just yaml-n
---
 yaml.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/yaml.el b/yaml.el
index a715d3d4d8..0ed3667808 100644
--- a/yaml.el
+++ b/yaml.el
@@ -261,7 +261,7 @@ This flag is intended for development purposes.")
 (defun yaml--process-literal-text (text)
   "Remove the header line for a folded match and return TEXT body formatted."
   (let ((n (get-text-property 0 'yaml-n text)))
-    (setq text (substring-no-properties text 0 (length text)))
+    (remove-text-properties 0 (length text) '(yaml-n nil) text)
     (let* ((header-line (substring text 0 (string-match "\n" text)))
            (text-body (substring text (1+ (string-match "\n" text))))
            (parsed-header (yaml--parse-block-header header-line))



reply via email to

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