Index: functions-formatting.php
===================================================================
--- functions-formatting.php	(revision 2612)
+++ functions-formatting.php	(working copy)
@@ -27,12 +27,12 @@
 			$curl = preg_replace('/(\d+)"/', '$1&#8243;', $curl);
 			$curl = preg_replace("/(\d+)'/", '$1&#8242;', $curl);
 			$curl = preg_replace("/(\S)'([^'\s])/", "$1&#8217;$2", $curl);
-			$curl = preg_replace('/(\s|\A)"(?!\s)/', '$1&#8220;$2', $curl);
+			$curl = preg_replace('/(\s\S|\s|\A)"(?!\s)/', '$1&#8220;$2', $curl);
 			$curl = preg_replace('/"(\s|\S|\Z)/', '&#8221;$1', $curl);
 			$curl = preg_replace("/'([\s.]|\Z)/", '&#8217;$1', $curl);
 			$curl = preg_replace("/ \(tm\)/i", ' &#8482;', $curl);
 			$curl = str_replace("''", '&#8221;', $curl);

