[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inconsistent space after raw regions
From: |
Quinn Grier |
Subject: |
Re: Inconsistent space after raw regions |
Date: |
Mon, 5 Oct 2015 14:27:33 -0500 |
On Mon, Oct 5, 2015 at 1:25 PM, Gavin Smith <address@hidden> wrote:
> On 5 October 2015 at 17:23, Quinn Grier <address@hidden> 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.:
>
> address@hidden,address@hidden,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