diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2006-11-13 05:57:21 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2006-11-13 05:57:21 +0000 |
| commit | 31348a2d7776d97be87a27e3deaca79e4012e21d (patch) | |
| tree | 7a26d2b32f651057b8ff1d44c0240f663d7c8d01 | |
| parent | cdec1622df86ca34ad041691729785ffbe9d1a68 (diff) | |
| download | docutils-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.py | 3 |
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 |
