Mercurial > p > roundup > code
diff roundup/cgi/actions.py @ 6435:ada96db8ec62
Ignore blank lines when editing class via CSV
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 11 Jun 2021 18:09:21 -0400 |
| parents | c4371ec7d1c0 |
| children | 37b57da3374f |
line wrap: on
line diff
--- a/roundup/cgi/actions.py Thu Jun 10 16:16:40 2021 -0400 +++ b/roundup/cgi/actions.py Fri Jun 11 18:09:21 2021 -0400 @@ -513,6 +513,10 @@ # skip property names header if values == props: continue + # skip blank lines. Can be in the middle + # of the data or a newline at end of file. + if len(values) == 0: + continue # extract the itemid itemid, values = values[0], values[1:]
