diff --git a/plugins/org.etsi.mts.tdl.tools.to.docx.poi/src/org/etsi/mts/tdl/tools/to/docx/poi/Generator.java b/plugins/org.etsi.mts.tdl.tools.to.docx.poi/src/org/etsi/mts/tdl/tools/to/docx/poi/Generator.java index aa04e46a0291b838fd04e73c57606d9b9cc7851e..06650f48dd2fc88ac1edac7b8e8442391081f85c 100644 --- a/plugins/org.etsi.mts.tdl.tools.to.docx.poi/src/org/etsi/mts/tdl/tools/to/docx/poi/Generator.java +++ b/plugins/org.etsi.mts.tdl.tools.to.docx.poi/src/org/etsi/mts/tdl/tools/to/docx/poi/Generator.java @@ -426,8 +426,12 @@ public class Generator { map.put(Placeholders.NAME, tpd.getName()); //TODO: what if 0? what if more than 1? //TODO: make more robust + //DONE: remove formatting spaces? if (tpd.getTestObjective().size() == 1) { - map.put(Placeholders.DESCRIPTION, tpd.getTestObjective().get(0).getDescription().replaceAll("\"", "")); + map.put(Placeholders.DESCRIPTION, tpd.getTestObjective().get(0).getDescription() + .replaceAll("\"", "") + .replaceAll("\\s*\n\\s+", " ") + ); String uri = String.join("\n", tpd.getTestObjective().get(0).getObjectiveURI()).trim(); map.put(Placeholders.URI, uri.replaceAll("\"","")); } else {