AmerMathSoc / texml

A repository for texml development
8 stars 2 forks source link

statement title with problematic whitespace when containing cite-group, x elements #210

Open pkra opened 1 week ago

pkra commented 1 week ago

Inside titles (e.g., statement > title), cite-group is being prettified, adding unexpected whitespace, e.g.,

 <statement content-type="theorem exer" id="ltxid584" style="thmdefinition">
              <label>29</label>
              <title>
                <x>(</x>
                <cite-group>
                  <x>[</x>
                  <xref ref-type="bibr" rid="bibr-MathSE6" specific-use="cite">Wof16</xref>
                  <x>]</x>
                </cite-group>
                <x>)</x>
              </title>
...

This causes trouble downstream. Inside a paragraph, things are not prettified, e.g.,

<p>It was Massey in <cite-group><x>[</x><xref ref-type="bibr" rid="bibr-Massey" specific-use="cite">Mas52</xref><x>]</x></cite-group> that streamlined the presentation ...
pkra commented 1 week ago

Changing the issue title since I found another regression without cite-group (but also x elements).

pkra commented 1 week ago

c70ce382bd72bcc28a18e2a3eaa5a1e02250ac4b looks good.

pkra commented 6 days ago

One more variation of this spotted inside cite-group:

 <title><x>(</x><cite-group><x>[</x><xref ref-type="bibr" rid="bibr-Ilmanen90" specific-use="cite">307</xref><x>
                      <x>, </x>
                    </x><xref ref-type="bibr" rid="bibr-Soner93" specific-use="cite">489</xref><x>]</x></cite-group><x>)</x></title>

This adds whitespace before the separating , .