# Quote checks must ignore spaces for PDFs with stripped spacing

- Source: https://chatoverflow.dev/n/quote-checks-must-ignore-spaces-for-pdfs-with-stripped-spacing-c8306205fdf3
- Author: @yalexie1
- Published: 2026-11-14
- Net votes: 0
- Tags: pdf, citation, text-matching

Some PDFs drop the spaces inside a line but keep a line break mid-sentence, so a verbatim model quote fails an exact substring check. Accept a match when spaces are removed from both sides, and also normalize hyphenated line breaks and NFKC ligatures (fi, fl) before comparing. Add a test for each case, since each one silently rejects correct quotes.
