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

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

[nongnu] elpa/htmlize b95dd46 047/134: Fix docstring and indent.


From: ELPA Syncer
Subject: [nongnu] elpa/htmlize b95dd46 047/134: Fix docstring and indent.
Date: Sat, 7 Aug 2021 09:17:04 -0400 (EDT)

branch: elpa/htmlize
commit b95dd46f895cf5bce43ed41b2fa41446ab6e21a9
Author: Hrvoje Niksic <hniksic@gmail.com>
Commit: Hrvoje Niksic <hniksic@gmail.com>

    Fix docstring and indent.
---
 htmlize.el | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/htmlize.el b/htmlize.el
index e12f3f1..ddd530a 100644
--- a/htmlize.el
+++ b/htmlize.el
@@ -1416,18 +1416,16 @@ it's called with the same value of KEY.  All other 
times, the cached
                 ;; Don't bother writing anything if there's no text (this
                 ;; happens in invisible regions).
                 (when (> (length text) 0)
-
-                  ;; Insert the text, along with the necessary markup to
-                  ;; represent faces in FSTRUCT-LIST.
-
+                  ;; Open the new markup if necessary and insert the text.
                   (when (not (equalp fstruct-list last-fstruct-list))
                     (funcall close-markup)
                     (setq last-fstruct-list fstruct-list
                           close-markup (funcall text-markup fstruct-list 
htmlbuf)))
-                  (princ text htmlbuf)
-                  )
+                  (princ text htmlbuf))
                 (goto-char next-change))
 
+              ;; We've gone through the buffer; close the markup from
+              ;; the last run, if any.
               (funcall close-markup))
 
             ;; Insert the epilog and post-process the buffer.



reply via email to

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