View Single Post
Old 08-20-2013, 05:53 PM   #6
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
Quote:
Originally Posted by Jellby View Post
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.

Last edited by Perkin; 08-20-2013 at 06:05 PM.
Perkin is offline   Reply With Quote