From c86bd15382924e732fca8dc403aaa3ef0784c625 Mon Sep 17 00:00:00 2001
From: Paulo Gustavo Veiga
Date: Sun, 4 Nov 2012 01:51:23 -0300
Subject: [PATCH] Fix unit tests.
---
.../exporter/FreemindExporter.java | 2 +-
.../src/test/resources/data/wisemaps/bug3.mmr | 36 +++++++++----------
.../src/test/resources/data/wisemaps/enc.mmr | 2 +-
3 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java b/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java
index 77f96b25..993dc8e6 100755
--- a/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java
+++ b/wise-webapp/src/main/java/com/wisemapping/exporter/FreemindExporter.java
@@ -206,7 +206,7 @@ public class FreemindExporter
final StringBuilder htmlContent = new StringBuilder("");
for (String line : text.split("\n")) {
line = StringEscapeUtils.escapeXml(line);
- htmlContent.append("").append(line).append("
");
+ htmlContent.append("").append(line.trim()).append("
");
}
htmlContent.append("");
diff --git a/wise-webapp/src/test/resources/data/wisemaps/bug3.mmr b/wise-webapp/src/test/resources/data/wisemaps/bug3.mmr
index fd2e1044..a05f92be 100644
--- a/wise-webapp/src/test/resources/data/wisemaps/bug3.mmr
+++ b/wise-webapp/src/test/resources/data/wisemaps/bug3.mmr
@@ -25,7 +25,7 @@
Firm's turnover from (new to firm)
- product innovation (as a pecentage of total turnover)
+ product innovation (as a pecentage of total turnover)
@@ -37,7 +37,7 @@
Increase in the probability to innovate linked to ICT use
- (in product innovation, process innovation, organisational innovaton, marketing innovation)
+ (in product innovation, process innovation, organisational innovaton, marketing innovation)