View Issue Details

IDProjectCategoryView StatusLast Update
0017752ScribusPlug-inspublic2026-02-15 17:13
Reporterroubert Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version1.7.3.svn 
Summary0017752: Fix bad escape sequences in Python docstring
DescriptionThe top-level docstring in importcsv2table.py contains bad escape sequences, using a single instead of the double backslash required inside of a Python triple-quoted string literal.

Displaying the docstring therefore currently results in this broken formatting:


You can easily create a CSV file with a Postgresql database. From Postgresql,
toggle unaligned output with the '' switch, then activate a comma as
a separator with '
                   ,' (without apostrophes). Send output to a file
with '\o myfile.csv', then query your database.


With the attached patch applied to add the missing backslashes, the result is instead this correct formatting:


You can easily create a CSV file with a Postgresql database. From Postgresql,
toggle unaligned output with the '\a' switch, then activate a comma as
a separator with '\f ,' (without apostrophes). Send output to a file
with '\o myfile.csv', then query your database.


I therefore propose that you apply the attached patch.
TagsNo tags attached.
Attached Files
importcsv2table-escape-01.patch (867 bytes)   
Index: scribus/plugins/scriptplugin/scripts/importcsv2table.py
===================================================================
--- scribus/plugins/scriptplugin/scripts/importcsv2table.py	(revision 27399)
+++ scribus/plugins/scriptplugin/scripts/importcsv2table.py	(working copy)
@@ -31,9 +31,9 @@
 
 Postgresql:
 You can easily create a CSV file with a Postgresql database. From Postgresql,
-toggle unaligned output with the '\a' switch, then activate a comma as
-a separator with '\f ,' (without apostrophes). Send output to a file
-with '\o myfile.csv', then query your database.
+toggle unaligned output with the '\\a' switch, then activate a comma as
+a separator with '\\f ,' (without apostrophes). Send output to a file
+with '\\o myfile.csv', then query your database.
 
 Sqlite3:
 You can use "sqlite3 -csv" in the command line or ".mode csv" in sqlite's
PatchYes

Activities

Issue History

Date Modified Username Field Change
2026-02-15 17:13 roubert New Issue
2026-02-15 17:13 roubert File Added: importcsv2table-escape-01.patch