-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support conversion of \n
to ZPL newline characters \\&
#15
Comments
I can see at least two options:
|
itsmattking
added a commit
that referenced
this issue
Sep 7, 2024
In FieldData, add an option to replace newlines `\n` with ZPL newline representation `\&`. Also update FieldBlock extension to use this option so that any usage of fieldBlock will automatically replace newlines.
itsmattking
added a commit
that referenced
this issue
Sep 20, 2024
- Make newline replacement non-optional. It is very unlikely we want to allow newline `\n` characters in field data as this breaks ZPL output. - Remove explicit use of `LinkedHashMap` as the `parameters` type in favour of using just `Map`. - Add helper `addParameters` to make explicit that we want a `LinkedHashMap` to be used when adding parameters. This is to ensure key entry order is preserved.
itsmattking
added a commit
that referenced
this issue
Sep 20, 2024
itsmattking
added a commit
that referenced
this issue
Sep 20, 2024
[#15] Replace newlines with ZPL equivalent
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Create an extension function of
String
perhaps?The text was updated successfully, but these errors were encountered: