in reply to logic for smart quotes - what does this code mean?
Although they will be processed as two separate lines, but as the quote status is rememebred globally, those two lines would be converted correctly to:abcd"ef gh"ijk
The reason you had the wrong guess, is that you didn't realize $ptQuote is initially set to 0, so the first time you execute that piece of code you showed, the if condition is not satisfied, thus the if block is not executed.abcd``ef gh''ijk
|
---|