From f8351d7aa84a526dfb8ac92fec9894f51e2a6359 Mon Sep 17 00:00:00 2001
From: Vsevolod Stakhov
Date: Thu, 24 Jun 2021 17:38:20 +0100
Subject: [PATCH] [Project] Html: More spaces logic fixes
---
src/libserver/html/html.cxx | 20 ++++++++++++++++++++
src/libserver/html/html_entities.cxx | 7 +++++++
2 files changed, 27 insertions(+)
diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index 45094e7f8..894b1ee45 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -1849,6 +1849,26 @@ TEST_CASE("html text extraction")
"
\n"
+ " \n"
+ " Hello, world! test\n"
+ " data<>\n"
+ "
\n"
+ " stuff?\n"
+ " ", "\n\n\ntest\n"},
{"
file "
"sharing
", "fish\n"},
+ /* FIXME: broken until rework */
+ //{"
file "
+ // "sharing
foo", "fish\nfoo"},
+ {"
test", "test"},
+ {"\n"
+ "\n"
+ "
\n"
+ " \n"
+ "
title\n"
+ " \n"
+ " \n"
+ " \n"
+ "
\n"
+ "