View Single Post
Old 08-05-2020, 04:11 PM   #35
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,893
Karma: 6120478
Join Date: Nov 2009
Device: many
Yes, I will need to go add back to line and col info and add the offset corrections for windows as only on windows is the file stored with \r\n. I was getting the offset directly from the data file. So we must be converting \r\n to \n someplace in the plugin readfile routine.

Nice catch!

Addendum:

Actually Sigil always strips out the \r\n line endings before saving the file, so by the time the plugin gets a hold of it the file has had the line endings converted to just \n

They get added back when reading in the file on Sigil on Windows.

Last edited by KevinH; 08-05-2020 at 04:32 PM.
KevinH is offline   Reply With Quote