Revision 625 tmp/org.txm.groovy.core/src/groovy/org/txm/importer/discours/importer.groovy

importer.groovy (revision 625)
188 188
			int nline = 0;
189 189
			def errors = [];
190 190
			while (line != null) {
191
				line = CleanFile.clean(line); // remove ctrl and surrogate chars
191
				line = CleanFile.cleanAllButTabs(line); // remove ctrl and surrogate chars
192 192
				
193 193
				nline++;
194 194
				String[] fields = line.split(separator);
......
237 237
					writer.write(" <txm:ana resp=\"#txm\" type=\"#ref\">${id}, §${paraV}</txm:ana>\n");
238 238
					writer.write("</w>\n");
239 239
				} else {
240
					//println "error : $nline : '$line'"
241
					errors << nline
240
					//println "error : $nline : '$line' -> $fields"
241
					if (line.length() > 0) errors << nline
242 242
				}
243 243
				line = reader.readLine();
244 244
			}

Also available in: Unified diff