Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@snnz
Copy link
Contributor

@snnz snnz commented Nov 21, 2024

Extra line feeds appear in the parsed link titles containing Windows-style line breaks, because \n that is peeked after \r is not skipped.

@xoofx
Copy link
Owner

xoofx commented Nov 21, 2024

Thanks! Good catch, could you add a test?

@snnz
Copy link
Contributor Author

snnz commented Nov 21, 2024

I've added a test. In the current version, it fails with the message:
Expected string length 16 but was 17. Strings differ at index 9. Expected: "this\ris\r\na\ntitle" But was: "this\ris\r\n\na\ntitle"

@xoofx xoofx merged commit 49cf59b into xoofx:master Nov 24, 2024
@xoofx xoofx added the bug label Nov 24, 2024
@snnz snnz deleted the fix-extra-lfs branch November 24, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants