On Mon, Oct 5, 2015 at 1:25 PM, Gavin Smith <[email protected]> wrote: > On 5 October 2015 at 17:23, Quinn Grier <[email protected]> wrote: >> There is inconsistent space inserted after the raw formatter regions. >> Try the following: >> >> \input texinfo >> @setfilename test.info >> @settitle test >> foo >> @html >> bar >> @end html >> @tex >> bar >> @end tex >> baz >> @bye >> >> This gives "foo barbaz" when translated to HTML but "foo bar baz" when >> translated to TeX with Texinfo 6.0, 5.2, and 4.13. It's unclear if this >> would be considered a bug, but it's something that I found surprising. > > Thanks for the report. > > I found that you could avoid a space by using the inline formatting > commands, e.g.: > > foo@inlineraw{tex,bar}@inlineraw{html,bar}baz > > produces the text "foobarbaz" with TeX. > > The manual notes, in node (texinfo)Raw Formatter Commands, that "The > behavior of newlines in raw regions is unspecified."
Yes, but the newline after each "bar" here is presumably necessary to end the raw region and not subject to this statement. > Any thoughts which one is the best? I'd expect it to be more common > for the space to be wanted than unwanted. I agree that ending a raw region would be expected to also act as word separating whitespace. If one did not want a space then the inline raw commands would be more natural, as you suggested. Quinn Grier
