[emacs-w3m:13231] Re: [emacs-w3m/emacs-w3m] Bb history display (#4)

yamaoka <[email protected]>
Newsgroups gmane.emacs.w3m
Message-ID <emacs-w3m/emacs-w3m/pull/4/[email protected]>
> 1. [line 10821] (width (- (w3m-display-width) 21))
>    I had 19 instead of 21, to squeeze in more space; was it giving you trouble with wide
>    characters or something? 

For mainly non-ASCII characters of which the width is interpreted variously as the case may be.
The typical one is the ellipsis character "&#8230;" that you introduced.    w3m seems to recognize
that its width is 1, however it is displayed by a wide character (width=2) in my Emacs environment.
Here is a recipe to see it (you may not see the difference, though).

(with-temp-buffer
  (insert "\
<table width=100%><tr><td width=50% align=\"left\">404 Not Found</td>
<td width=50% align=\"right\">23:59:59&nbsp;2019-12-31</td>
<tr><td width=50% align=\"left\">Long Title&#8230;</td>
<td width=50% align=\"right\">23:59:59&nbsp;2020-01-01</td>
</tr></table>\n")
  (w3m-rendering-half-dump 'utf-8)
  (w3m-decode-entities)
  (concat "\n" (buffer-string)))

> 1. function w3m-db-history-fix-indentation I don't know how to test, so I'll take your word for it.

Because of the above reason, the indentation for Time/Date portions vary line by line.
The function arranges the indentation column all to be the minimum one of them.

To be continued

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/emacs-w3m/emacs-w3m/pull/4#issuecomment-465872000
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.