From 61dae0ac2d78d3d1d09602d7397de2ecb57c1a79 Mon Sep 17 00:00:00 2001 From: "exe.dev user" Date: Sun, 19 Apr 2026 22:49:43 +0000 Subject: [PATCH] Added a join lines with space --- textfilters.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/textfilters.go b/textfilters.go index d0de1bd..16e5a72 100644 --- a/textfilters.go +++ b/textfilters.go @@ -75,6 +75,12 @@ var TextFilters = map[string]TextProcessor{ return TextFilterResponse{Output: strings.Replace(input, "\n", ",", -1)}, nil }, }, + "join-lines-with-spaces": { + Label: "Lines: Join with Spaces", + Filter: func(ctx context.Context, input string) (resp TextFilterResponse, err error) { + return TextFilterResponse{Output: strings.Replace(input, "\n", " ", -1)}, nil + }, + }, "split-lines-on-commas": { Label: "Lines: Split on Commas", Filter: func(ctx context.Context, input string) (resp TextFilterResponse, err error) {