html5 pre tags in documentation.xml are not tei
I feel that tei documents in a tei app should be valid. There are about 23 validation errors related to this in the documentation (and 7 in presentation). This actually creates two two problems.
-
Validation errors: I would suggest to wrap all <code>
in either<eg>
for multiline code listings and<p>
(or<ab>
) for single line listings. Just removing the wrapping element won't do, it creates invalid parent-child relations. -
Styling html output: To preserve Bootstrap styling of <pre>
tags, we need to adjust the odd2html transformations, so that they output pre tags for multiline listings. Is there a central place to define this, or do we need to go through the contents of/transform
and fix it there?
Edited by Duncan Paterson