From: Wolfram Schneider Date: Wed, 15 Oct 2014 12:47:15 +0000 (+0200) Subject: trim newlines from titles, MKWS-290 X-Git-Tag: 1.0.0~192^2~15 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=a1857b32353c865b611eec9ee98ac532ff83dd3d trim newlines from titles, MKWS-290 I guess the newlines comes from the new template framework, otherwise we would see this noisy log output earlier. --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 2f5b5ab..fe0e345 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -676,7 +676,7 @@ describe("Check SortBy options", function () { var list = []; var terms = $("div.mkwsRecords > div.mkwsSummary > a"); for (var i = 0; i < terms.length; i++) { - var term = $(terms[i]).text(); + var term = $(terms[i]).text().trim(); list.push(term); // debug(prefix + "title: " + term); }