Append Text To Lines
How This Converter Works
Adds the selected prefix and suffix to every segment obtained by splitting input on LF. A newline is appended after every output segment, including the last; CR characters from CRLF input remain part of the segment.
Formula or rule
For each line in input.split(\"\n\"), append prefix + line + suffix + LF.
Example
- Input
- Input: red; prefix: [; suffix: ]
- Calculation
- Wrap the single line, then append the required final LF.
- Result
- [red]