emacs-devel
[Top][All Lists]
Advanced

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

Re: Variable pitch mode line


From: Eli Zaretskii
Subject: Re: Variable pitch mode line
Date: Sun, 26 Dec 2021 14:11:48 +0200

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: luangruo@yahoo.com,  tsdh@gnu.org,  emacs-devel@gnu.org,
>   monnier@iro.umontreal.ca,  juri@linkov.net
> Date: Sun, 26 Dec 2021 13:02:32 +0100
> 
> In the HTML, newlines are just whitespace like anything else.  When
> rendering most elements, the newlines are transformed to spaces.  (But
> that's not done when rendering <pre> elements.)
> 
> <p>When a form is a macro call, it expands into a new form for Lisp to
> evaluate.  We show the result of the expansion with
> &lsquo;<samp>&rarr;</samp>&rsquo;.  We may or may not show the result of the
> evaluation of the expanded form.
> </p>
> <div class="example">
> <pre class="example">(third '(a b c))
>      &rarr; (car (cdr (cdr '(a b c))))
>      &rArr; c
> </pre></div>
> 
> Nothing special about the newline characters (or the lack of them).

In that case, I guess we will need to convert newlines to spaces
inside "<p>..</p>", but not inside <pre>.

> Anyway, your suggestion was to have shr not do the reflow, but leave
> that to redisplay.  My question was whether we have a way to avoid that
> on certain pre-formatted lines, like if you have:
> 
> <pre>This is a line that will be reflowed by visual-line-mode because it's 
> too wide for the window, but it shouldn't be reflowed.</pre>

We could convert spaces into NBSPs, I guess?  But if the above a
frequent situation in GNU manuals?



reply via email to

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