From c527c866a7ddaf190b96746a7d540a62513ec4f7 Mon Sep 17 00:00:00 2001 From: goodger Date: Thu, 22 Jun 2006 19:04:01 +0000 Subject: [PATCH] for compatibility with Python2.5b1 git-svn-id: https://docutils.svn.sourceforge.net/svnroot/docutils/trunk@4630 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/docutils/parsers/rst/directives/tables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docutils/docutils/parsers/rst/directives/tables.py b/docutils/docutils/parsers/rst/directives/tables.py index 38e054bf0..edfe7edb3 100644 --- a/docutils/docutils/parsers/rst/directives/tables.py +++ b/docutils/docutils/parsers/rst/directives/tables.py @@ -259,7 +259,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 -- 2.11.4.GIT