From de2f6fc55b5fdf7432cda92c637a578e23db97f8 Mon Sep 17 00:00:00 2001
From: webzwo0i
+а б в г ґ д е є ж з и і ї й к л м н о
+п р с т у ф х ц ч ш щ ю я ь
+а б в г ґ д е є ж з и і ї й к л м н о
+ and paragraphs with
multiple lines
---
tests/backend/specs/contentcollector.js | 26 ++++++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/tests/backend/specs/contentcollector.js b/tests/backend/specs/contentcollector.js
index d5d4ce63b..071d6adfc 100644
--- a/tests/backend/specs/contentcollector.js
+++ b/tests/backend/specs/contentcollector.js
@@ -1,8 +1,6 @@
-const Changeset = require("../../../src/static/js/Changeset");
const contentcollector = require("../../../src/static/js/contentcollector");
const AttributePool = require("../../../src/static/js/AttributePool");
const cheerio = require("../../../src/node_modules/cheerio");
-const util = require('util');
const tests = {
nestedLi:{
@@ -101,8 +99,30 @@ const tests = {
expectedText: ["*should be 1","*should be 2","*should be 3"],
noteToSelf: "should create a line break but not break numbering -- This is what I can't get working!",
disabled: true
+ },
+ multiLineParagraph:{
+ description: "A paragraph with multiple lines should not loose spaces when lines are combined",
+ html:`
multiple
+lines
+in
+pre
+
п р с т у ф х ц ч ш щ ю я +ь
+`, + expectedLineAttribs: [ '+12', '+8', '+5', '+2', '+3', '+r' ], + expectedText: ["а б в г ґ д е є ж з и і ї й к л м н о ", "multiple", "lines", "in", "pre", "п р с т у ф х ц ч ш щ ю я ь"] } - } describe(__filename, function() {