From 91dce84c59c939589a8c01132497dc3fa39818b9 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Tue, 18 Oct 2011 14:40:33 +0200 Subject: [PATCH] Fix sqlify for multiline contents. --- doc/changelog.txt | 2 +- linkcheck/logger/sql.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 95564a80..0fe59a44 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -5,7 +5,7 @@ Fixes: some sites. Closes: SF bug #3388291 - logging: Fix SQL output. - Closes: SF bug #3415274 + Closes: SF bug #3415274, #3422230 - checking: Fix W3C HTML checking by using the new soap12 output. Closes: SF bug #3413022 - gui: Fix startup when configuration file contains errors. diff --git a/linkcheck/logger/sql.py b/linkcheck/logger/sql.py index 7950311e..0ec117dc 100644 --- a/linkcheck/logger/sql.py +++ b/linkcheck/logger/sql.py @@ -29,7 +29,7 @@ def sqlify (s): """ if not s: return "NULL" - return "'%s'" % s.replace("'", "''") + return "'%s'" % s.replace("'", "''").replace(os.linesep, r"\n") def intify (s):