Quote:
Originally Posted by Jellby
A dash can be inside or outside quotes. Is this handled correctly?
Code:
<p>"Blah blah"--he said, and continued--"blah, blah blah."</p>
<p>"Blah blah--" he said, and continued, "--blah, blah, blah."</p>
and you already know that the dashes could be spaced or not...
|
My code converts them to:
Code:
“Blah blah”–he said, and continued–“blah, blah blah.”
“Blah blah–” he said, and continued, “–blah, blah, blah.”
Ones I can't handle correctly are if there's a space before and after the quote, - one would always be wrong.
Code:
<p>"Blah blah-- " he said, and continued, " --blah, blah, blah."</p>
As it stands both the solitary quotes are converted to opening quotes, so the first would be wrong.
I'm working on correcting that.
Edit: Just solved that particular problem as well.