On Tue, Jul 08, 2025 at 12:07:11PM +0000, Werner LEMBERG wrote: > > [texi2any 7.2] > > > texi2any --html -c FORMAT_MENU=menu menu.texinfo > ``` > > the menu comment in output file `index.html` gets formatted like this: > > ``` > <pre class="menu-comment-preformatted"> > > > XXX <var class="var">yyy</var> ZZZ > > > </pre> > ``` > > Why `<pre>`? I consider this surprising since the item description of > a menu entry (i.e., the third part of an entry) is not output with > `<pre>`.
The idea was that the users may have wanted to have the end lines and spaces to be significant, like in Info output. I agree that it is somewhat inconsistent to have menu comments in preformatted and not menu entries with descriptions. I think that there was previously the possibility to have menu entries also in preformatted like menu comments, with the SIMPLE_MENU option, but it is gone, it was too much of a pain to keep up to date. -- Pat
