From 3864b5394ccae92825a3d6c00651b35b33be0bca Mon Sep 17 00:00:00 2001 From: Adrian Hopek Date: Wed, 11 May 2022 09:01:16 +0200 Subject: [PATCH] wip --- app/Domain/ResumeGenerator.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Domain/ResumeGenerator.php b/app/Domain/ResumeGenerator.php index 0639c50..9d10def 100644 --- a/app/Domain/ResumeGenerator.php +++ b/app/Domain/ResumeGenerator.php @@ -98,10 +98,15 @@ class ResumeGenerator "start_date#{$index}" => Carbon::create($project["startDate"])->toDisplayString(), "end_date#{$index}" => Carbon::create($project["endDate"])->toDisplayString(), "description#{$index}" => $project["description"], - "tasks#{$index}" => $project["tasks"], + "tasks#{$index}" => $this->withNewLines($project["tasks"]), ]; } + protected function withNewLines(string $text): string + { + return Str::replace("\n", "", $text); + } + protected function getProjectTechnologies(array $project, int $index): array { $technologies = new Collection($project["technologies"] ?? []);