- Issue created by @alangallery
- π¬π§United Kingdom alangallery
In case its of use to others, for now I've added a pipe option to the functions formatHtmlItems and formatTextItems in WebformElementBase with this patch.
- πΊπΈUnited States jrockowitz Brooklyn, NY
Please fix the spacing in the patch and provide test coverage.
- Status changed to Needs work
over 1 year ago 6:41pm 27 March 2023 Is that patch made with something besides Git?
Also: you probably donβt need to test every platform combination at this stage.
- π¬π§United Kingdom alangallery
Thanks cilefen. I just used diff.
The patch failure message is error: Plugin/WebformElementBase.php: No such file or directory
Comparing a patch generated with Git its very similar to this one but with a/ b/ prefixes indicating the modified files. eg.
--- a/src/Plugin/WebformElementBase.php 2023-03-27 17:30:04.067928500 +0100 +++ b/src/Plugin/WebformElementBase.php 2023-03-27 17:38:59.712840100 +0100
I could amend the patch accordingly and upload again?
- Status changed to Needs review
over 1 year ago 11:23pm 26 May 2023 - last update
over 1 year ago 537 pass - Status changed to Closed: won't fix
over 1 year ago 11:30pm 26 May 2023 - πΊπΈUnited States jrockowitz Brooklyn, NY
I just realized you could use custom Twig for pipe delimited values.
See attached the webform and below is the example Twig.
{{ items|join(''|'') }}