View Single Post
Old 08-05-2020, 05:27 PM   #37
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,734
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
Hi Doitsu,
Would it work to put back the proper windows line endings before parsing the file?

Does this change to plugin.py work?
Unfortunately, it didn't, because the book that I tested it with was last saved with the Windows version of Sigil, which always saves files with \r\n line endings. I.e., there were already \r\n line endings in the input file.

IMHO, it doesn't really matter, because the actual implementation will be in C++ and not as a validation plugin and the most important part of the code--multi-language spell checking--works as designed.
Doitsu is offline   Reply With Quote