]> git.lyx.org Git - features.git/commitdiff
escape backslashes when importing the cells
authorJosé Matox <jamatos@lyx.org>
Tue, 20 May 2008 11:20:33 +0000 (11:20 +0000)
committerJosé Matox <jamatos@lyx.org>
Tue, 20 May 2008 11:20:33 +0000 (11:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24862 a592a061-630c-0410-9148-cb99ea01b6c8

lib/scripts/csv2lyx.py

index 341c69303230e33a48ae22119c7a09d5bf056f60..77706b4efd8c2472787a127a7a36f5ea58c6549f 100644 (file)
@@ -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):