From 81ca2da2d46e6c24ac368212faadea68d3844546 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Tue, 20 May 2008 11:20:33 +0000 Subject: [PATCH] escape backslashes when importing the cells git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24862 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/scripts/csv2lyx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scripts/csv2lyx.py b/lib/scripts/csv2lyx.py index 341c693032..77706b4efd 100644 --- a/lib/scripts/csv2lyx.py +++ b/lib/scripts/csv2lyx.py @@ -180,7 +180,7 @@ for j in range(num_rows): # write contents of one line ############################ for i in range(len(rows[j])): - row.append( cell % rows[j][i]) + row.append( cell % rows[j][i].replace('\\','\\backslash\n')) # If row has less columns than num_cols fill with blank entries for i in range(len(rows[j]), num_cols): -- 2.39.2