Hypothesis annotation TextQuoteSelectors may include newlines, tabs, or space-indented tabs as artifacts of anchoring annotations inside the HTML document. To mirror the display of quotes inside Hypothesis, this PR strips this whitespace from the rendered quotes.
This should make highlights look nice in more cases, I don't think perfect is possible here. The user can always modify the highlight in the rendered file to make it more comprehensible.
Hypothesis annotation
TextQuoteSelector
s may include newlines, tabs, or space-indented tabs as artifacts of anchoring annotations inside the HTML document. To mirror the display of quotes inside Hypothesis, this PR strips this whitespace from the rendered quotes.This should make highlights look nice in more cases, I don't think perfect is possible here. The user can always modify the highlight in the rendered file to make it more comprehensible.
Before example:
After example: