mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-01 14:08:23 -06:00
parse_calculate trimmed the notation with str::trim, which also took an escaped space ending its last name: "Qty * Total\ " read back as "Qty * Total\", a field the form doesn't have, while the script's JavaScript still read "Total ". It now trims to its first and last token, as the field-reading scan does. notation_storable compares the names and operators read back with those given, so a notation ending in a lone \ (which escapes the space after it) is refused; a proptest reads back notations of any names (from the review). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P6yUtvWGPsJpMLyh6pxSXG