standardebooks / tools

The Standard Ebooks toolset for producing our ebook files.
Other
1.42k stars 125 forks source link

Two endnote refs right next to each other #346

Closed vr8hub closed 4 years ago

vr8hub commented 4 years ago

I ran lint for the first time just for run (three-and-a-half minutes, 5800+ plain lines). It seems to be tripping on two endnotes right next to each other. It's throwing a t-020 error (outside of punctuation), but the endnote is outside of punctuation, and the only thing the ones that errored have in common is that it is instances of one endnote immediately following another one; the error is thrown on the first one, not the second one.

IOW, it doesn't seem to like this:

This is some text.<a href="endnotes.xhtml#note-2" id="noteref-2" epub:type="noteref">2</a><a href="endnotes.xhtml#note-3" id="noteref-3" epub:type="noteref">3</a> This is some more text.

That is valid; we have endnotes from three different people, and they occasionally want to talk about the same text.

acabal commented 4 years ago

Looks like a bug in lint, I'll fix it in the next version. Thanks!

On 9/7/20 6:40 PM, vr8hub wrote:

I ran lint for the first time just for run (three-and-a-half minutes, 5800+ plain lines). It seems to be tripping on two endnotes right next to each other. It's throwing a t-020 error (outside of punctuation), but the endnote /is/ outside of punctuation, and the only thing the ones that errored have in common is that it is instances of one endnote immediately following another one; the error is thrown on the first one, not the second one.

IOW, it doesn't seem to like this:

|This is some text.<a href="endnotes.xhtml#note-2" id="noteref-2" epub:type="noteref">2<a href="endnotes.xhtml#note-3" id="noteref-3" epub:type="noteref">3 This is some more text. |

That /is/ valid; we have endnotes from three different people, and they occasionally want to talk about the same text.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/standardebooks/tools/issues/346, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGTOYHMDZ2YRJVCWNQMXTDSEVVOPANCNFSM4Q7B4IFQ.