smart-quotes fails when surrounding pollen markup
Closedopened 6 years ago by clozach · 1 comments
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Encountered this issue while working through the tutorial.
Steps to reproduce
With this carefully-prepared example, the quotes surrounding the two
◊codedwords just remain "dumb" quotes.
Even if the above behavior is intentional (and if it is, what's the workaround if one actually wants pretty quotes around markup?), the example below demonstrates a definite bug whereby smart-quotes seems to be only partially applied.
Note the opening curly-single-quote after
The behavior is correct. If you want
smart-quotesto handle quotes that span multiple elements, you need to attach
#:txexpr-proc, not as a
Consider what’s happening in this X-expression:
phas five elements — three strings and two tagged X-expressions (each of which contains a string). If you use
smart-quotesprocesses each of these five strings individually (and consequently doesn’t see any pairs of quotes). Whereas when you use
#:txexpr-proc, it looks at the
ptag as a whole, and then notices the pairs.