-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
As observed by @line-o, the "indent=no" serialization declaration in modules/view.xql seems to have no effect. As a result, whitespace is being inserted into generated HTML.
For example, given the source TEI of https://history.state.gov/historicaldocuments/frus1914-20v01/d28 which has no whitespace between the <gloss>
and <hi>
elements:
<head>
<hi rend="italic">Mr. J. P. Tumulty</hi> (<gloss type="from"><hi rend="italic">Secretary to the
President</hi></gloss>) <hi rend="italic">to the <gloss type="to">Secretary of
State</gloss>
</hi>
</head>
The generated HTML has whitespace between the <span>
elements generated from the <gloss>
and <hi>
elements:
<h3 class="tei-head7">
<span class="tei-hi2 font-italic italic">Mr. J. P. Tumulty</span> (<span class="tei-gloss">
<span class="tei-hi2 font-italic italic">Secretary to the President</span>
</span>) <span class="tei-hi2 font-italic italic">to the <span class="tei-gloss">Secretary of
State</span>
</span>
</h3>
This leads to the web edition having extra spaces:
Can we research how to enforce indent=no
and why the directive in the main module isn't being respected?
Metadata
Metadata
Assignees
Labels
No labels