View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0017752 | Scribus | Plug-ins | public | 2026-02-15 17:13 | 2026-02-15 17:13 |
| Reporter | roubert | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Product Version | 1.7.3.svn | ||||
| Summary | 0017752: Fix bad escape sequences in Python docstring | ||||
| Description | The 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. | ||||
| Tags | No 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 | ||||
| Patch | Yes | ||||