From 826e799278215e1c70b598dca597476c98fdbb06 Mon Sep 17 00:00:00 2001 From: Martin Zeithaml Date: Mon, 16 May 2022 14:50:33 +0200 Subject: [PATCH] Keep leading spaces in dataset content Signed-off-by: Martin Zeithaml --- webClient/src/app/shared/http/http.data.adapter.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webClient/src/app/shared/http/http.data.adapter.service.ts b/webClient/src/app/shared/http/http.data.adapter.service.ts index 005e42f5..48d5fd51 100644 --- a/webClient/src/app/shared/http/http.data.adapter.service.ts +++ b/webClient/src/app/shared/http/http.data.adapter.service.ts @@ -99,7 +99,7 @@ export class DataAdapterService { convertDatasetContent(responseData: any): { contents: string, etag: string } { return { - contents: JSON.parse(responseData).records.filter(function(record){return record.length > 0}).map(function(record){return record.trim()}).join("\n"), + contents: JSON.parse(responseData).records.filter(function(record){return record.length > 0}).map(function(record){return record.trimEnd()}).join("\n"), etag: JSON.parse(responseData).etag }; }