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"] ?? []);