Skip to content

v1.2.2

Latest

Choose a tag to compare

@jonathanspiva jonathanspiva released this 04 Dec 03:49
98cca1a

Template substitution fix. Values passed to
render(substituting:prettyPrint:) are now encoded the same way as values
passed to an element's initializer. No API changes. Output changes only where a
value needs escaping or lands in a field that handles it specially.

Fixed

  • A substituted value containing _, ^, ~, a control character or any
    non-ASCII text printed as literal escape codes (AB_12 came out as
    AB_5F12, Jürgen as J_C3_BCrgen), in text and inside barcodes alike,
    because the field never switched into ^FH hex mode. The affected field now
    does, and the label selects ^CI28 when a value is non-ASCII.
  • A newline substituted into a TextBlock is now a line break, and a backslash
    prints as a backslash.
  • A comma substituted into a SerialNumber is stripped, as the initializer
    already did, so it can no longer shift the ^SN parameters.
  • A literal {{ earlier in a label no longer stops a later placeholder from
    being substituted, and {{{name}}} now substitutes inside the outer braces.