summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2006-11-13 05:57:21 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2006-11-13 05:57:21 +0000
commit31348a2d7776d97be87a27e3deaca79e4012e21d (patch)
tree7a26d2b32f651057b8ff1d44c0240f663d7c8d01
parentcdec1622df86ca34ad041691729785ffbe9d1a68 (diff)
downloaddocutils-31348a2d7776d97be87a27e3deaca79e4012e21d.tar.gz
--- MERGE: merged r4630 to maintenance branch; original log message:
for compatibility with Python2.5b1 git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/docutils-0.4@4814 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r--docutils/parsers/rst/directives/tables.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/docutils/parsers/rst/directives/tables.py b/docutils/parsers/rst/directives/tables.py
index 70a0de5ab..e40b6ec00 100644
--- a/docutils/parsers/rst/directives/tables.py
+++ b/docutils/parsers/rst/directives/tables.py
@@ -261,7 +261,8 @@ def process_header_option(options, state_machine, lineno):
def parse_csv_data_into_rows(csv_data, dialect, source, options):
# csv.py doesn't do Unicode; encode temporarily as UTF-8
- csv_reader = csv.reader([line.encode('utf-8') for line in csv_data],
+ csv_reader = csv.reader([(line.encode('utf-8') + '\n')
+ for line in csv_data],
dialect=dialect)
rows = []
max_cols = 0