]> git.eshelyaron.com Git - emacs.git/commitdiff
(Info-fontify-node): Use `string-width' for fontifying underlined titles.
authorJuri Linkov <juri@jurta.org>
Tue, 1 Nov 2005 10:04:19 +0000 (10:04 +0000)
committerJuri Linkov <juri@jurta.org>
Tue, 1 Nov 2005 10:04:19 +0000 (10:04 +0000)
lisp/ChangeLog
lisp/info.el

index 03356b20c09806f42ca35e757897f68dfe1c0be8..5cfa331cb349ad8cc7ccba296159ff059bc708b1 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-01  KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>  (tiny change)
+
+       * info.el (Info-fontify-node): Use `string-width' for fontifying
+       underlined titles.
+
 2005-11-01  Juri Linkov  <juri@jurta.org>
 
        * info.el (Info-fontify-node): Downcase node header keywords Node,
index a151bea04440b1cc9208dc1484d7b2ad8328bac3..1b408f2077e8632dc9661e3dc22c38a0bf4999e0 100644 (file)
@@ -3722,8 +3722,8 @@ the variable `Info-file-list-for-emacs'."
                     ;; underline has the same size as the text.  A typical
                     ;; counter example is when a continuation "..." is alone
                     ;; on a line.
-                    (= (- (match-end 1) (match-beginning 1))
-                       (- (match-end 2) (match-beginning 2))))
+                    (= (string-width (match-string 1))
+                       (string-width (match-string 2))))
           (let* ((c (preceding-char))
                  (face
                   (cond ((= c ?*) 'info-title-1)