Span.Start is incorrect with text using CR instead of CRLF #345

Closed
opened 2026-01-29 14:34:22 +00:00 by claunia · 1 comment
Owner

Originally created by @NeomMob on GitHub (Feb 4, 2020).

Hello,

I am using UsePreciseSourceLocation to get accurate positions in the source text. While it works fine with text having standard Windows line endings (CRLF), offsets are incorrect when using a text coming from a Mac (CR line ending).
Any idea how I could fix that issue?

Originally created by @NeomMob on GitHub (Feb 4, 2020). Hello, I am using `UsePreciseSourceLocation` to get accurate positions in the source text. While it works fine with text having standard Windows line endings (`CRLF`), offsets are incorrect when using a text coming from a Mac (`CR` line ending). Any idea how I could fix that issue?
Author
Owner

@NeomMob commented on GitHub (Feb 4, 2020):

Posted to fast, issue is not there.

@NeomMob commented on GitHub (Feb 4, 2020): Posted to fast, issue is not there.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#345