Closed dginev closed 10 months ago
Btw this makes me wonder if OptionalMatch:literal
should also skip spaces in the case where it successfully matches the literal.
On 1/11/24 16:34, Deyan Ginev wrote:
Btw this makes me wonder if |OptionalMatch:literal| should also skip spaces in the case where it successfully matches the literal.
Seems worth a try to see what tests explode, but I suspect that this is not the standard behavior of (eg) "*"
@brucemiller OK, being a bit braver for the sake of exploration. I added a commit that appeared to pass all tests, as well as the motivating \pdfliteral
example.
I could only think of Parameter::read
as the place to add the check however, since OptionalMatch
doesn't have a dedicated reader function - which makes the new check look a little out of place.
Minimal fix for https://github.com/arXiv/html_feedback/issues/258
The main issue was a need for adding the
SkipSpaces
parameter between twoOptionalMatch:
parameters in\pdfliteral
, so that the arguments get read in appropriately, and then ignored (for now).The minimal test snippet is:
This kind of pattern would benefit from a test, but I think that can wait until we actually try to emulate some of the directives (e.g. turning
test
bold here).