mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Refactor ox-clip advice to omit before/after props
This commit is contained in:
@ -47,10 +47,5 @@ properties and font-locking et all)."
|
||||
(_
|
||||
;; Omit after/before-string overlay properties in htmlized regions, so we
|
||||
;; don't get fringe characters for things like flycheck or git-gutter.
|
||||
(letf! (defun htmlize-get-text-with-display (beg end)
|
||||
(let ((text (buffer-substring-no-properties beg end)))
|
||||
(htmlize-copy-prop 'display beg end text)
|
||||
(htmlize-copy-prop 'htmlize-link beg end text)
|
||||
;; (setq text (htmlize-add-before-after-strings beg end text))
|
||||
text))
|
||||
(letf! (defun htmlize-add-before-after-strings (_beg _end text) text)
|
||||
(ox-clip-formatted-copy beg end)))))
|
||||
|
Reference in New Issue
Block a user