Commit c334b588 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ fix for spacing issues in TPD descriptions #63

parent 3d42a767
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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 {