|
From: <fri...@us...> - 2010-05-24 09:24:39
|
Revision: 10097
http://zaf.svn.sourceforge.net/zaf/?rev=10097&view=rev
Author: friedelwolff
Date: 2010-05-24 09:24:33 +0000 (Mon, 24 May 2010)
Log Message:
-----------
Handle empty rows in the CSV file correctly
Modified Paths:
--------------
trunk/dict/utils/csv2acor.py
Modified: trunk/dict/utils/csv2acor.py
===================================================================
--- trunk/dict/utils/csv2acor.py 2010-05-20 06:44:11 UTC (rev 10096)
+++ trunk/dict/utils/csv2acor.py 2010-05-24 09:24:33 UTC (rev 10097)
@@ -64,6 +64,8 @@
DocumentListfile.write(fileheader+"\n")
csvreader = csv.reader(file(DocumentList), calc)
for row in csvreader:
+ if not row:
+ continue
line = ' <block-list:block block-list:abbreviated-name="'+row[0]+'" block-list:name="'+row[1]+'"/>'+"\n";
DocumentListfile.write(line)
DocumentListfile.write(filefooter+"\n")
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|