Closed kmccurley closed 4 months ago
In the particular case that was mentioned, there was a newline in the subtitle field and we have no provision for a plaintext version of this. Perhaps we should just strip the newline out when it goes to JSON.
As it turns out, a newline in the title is removed. The problem is a newline in the subtitle field.
We had an example of a paper where the title contained a newline character, and it caused havoc with the production of JATS XML, crossref XML, and the HTML on the landing page. I suspect that the answer to this is to have iacrcc check if the title contains a newline and if it does, then require a
plaintext
argument on title. Newline characters are really only relevant to the display of a title, and that depends on the medium (e.g., PDF vs HTML display on a desktop vs HTML display on a phone). We can allow the author to control it in the PDF, but we should not preserve it downstream.