On Fri, Jan 13, 2023 at 11:10:31PM +0100, Patrice Dumas wrote: > On Fri, Jan 13, 2023 at 09:01:41PM +0000, Gavin Smith wrote: > > I've checked the important output formats (texinfo.tex, HTML, Info, DocBook, > > LaTeX) and it seems that there isn't much more to be done on either @w or > > @verb to get consistency across the output formats. > > > > The main thing I found was that that not much is done with @w in DocBook > > output. The input > > > > xx @verb{|a a a > > b|} xx > > > > yy @w{|A A A > > B|} yy > > > > currently outputs as > > > > <para>xx <literal>a a a > > b</literal> xx > > </para> > > <para>yy |A A A > > B|<!-- /@w --> yy > > </para> > > > > Are there any thoughts on the change at the bottom of this mail? > > Looks good to me. >
The following came up in the test suite changes: in @w <emphasis role="bold">b</emphasis><!-- /@w --> i.e. the search and replace also took place inside tags, which is wrong. I guess some kind of formatting stack is needed which is referred to inside _protect_text or the conditional at the start of _convert handling element text.