From ccc61a5f74f12a678ef931abfb652a51206d4210 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 24 Jul 2016 18:48:34 +0100 Subject: [PATCH] [Fix] Add spaces instead of newlines to the normalized content --- src/ragel/newlines_strip.rl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ragel/newlines_strip.rl b/src/ragel/newlines_strip.rl index 190a759ac..a0e239bc3 100644 --- a/src/ragel/newlines_strip.rl +++ b/src/ragel/newlines_strip.rl @@ -4,7 +4,7 @@ action Double_CRLF { if (!crlf_added && p > c) { (*newlines_count)++; - g_byte_array_append (data, (const guint8 *)"\n", 1); + g_byte_array_append (data, (const guint8 *)" ", 1); c = p; } @@ -34,7 +34,7 @@ action Line_CRLF { if (!crlf_added) { if (is_html || g_ascii_ispunct (last_c)) { - g_byte_array_append (data, (const guint8 *)"\n", 1); + g_byte_array_append (data, (const guint8 *)" ", 1); crlf_added = TRUE; } } -- 2.39.5