diff --git a/src/main/java/ch/ethz/seb/sebserver/gbl/util/Utils.java b/src/main/java/ch/ethz/seb/sebserver/gbl/util/Utils.java index 4d0c4671..c818f145 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gbl/util/Utils.java +++ b/src/main/java/ch/ethz/seb/sebserver/gbl/util/Utils.java @@ -678,7 +678,11 @@ public final class Utils { if (StringUtils.isBlank(text)) { return StringUtils.EMPTY; } - return Constants.DOUBLE_QUOTE + text.replace("\"", "\"\"") + Constants.DOUBLE_QUOTE; + return Constants.DOUBLE_QUOTE + + text + .replace("\r\n", "\n") + .replace("\"", "\"\"") + + Constants.DOUBLE_QUOTE; } }