 				# do we have a line ending
 				if charCode == 13 or charCode == 10
 
+					if (charCode == 13 and nextCharCode == 10)
+						idx = idx + 2
+					else
+						idx = idx + 1
+
 					if in_quotes
 						column_chars.push(String.fromCharCode(10))
 					else

					columns = []

				column_idx = 0

			while (idx < len)
				char = text.charAt(idx)

							CUI.setTimeout
								ms: 10
								call: do_work

							return

					continue

