IDEMSInternational / rapidpro-flow-toolkit

Toolkit for using spreadsheets to create and modify RapidPro flows
GNU Lesser General Public License v2.1
3 stars 1 forks source link

Filter out Windows-specific newlines #116

Closed istride closed 8 months ago

istride commented 8 months ago

GoogleSheetReader does not replace '\r\n' character sequences like the CSVSheetReader does. This is because Python automatically converts to '\n' when a file is read. The Google Sheets API preserves the content of cells, so the conversion must be done explicitly by the toolkit.

Closes #115

fagiothree commented 8 months ago

Testing the code on the parenttext Mexico flows, \r at the end of sentences is removed. However, there are still a few cases where \r is at the beginning of the sentence such as image

istride commented 8 months ago

The remaining instances of "\r" should be removed manually, for now.