<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -56,6 +56,7 @@
             $tags = array();
             foreach ($values as $key =&gt;&amp;$value) {
                 $paragraphs = preg_split(&quot;/([\r\n]{2,4})/&quot;, $value);
+                $rejoin = ((strlen($value) - strlen(implode(&quot;&quot;, $paragraphs)) / count($paragraphs)) == 4) ? &quot;\r\n\r\n&quot; : &quot;\n\n&quot; ;
 
                 foreach ($paragraphs as $index =&gt; &amp;$paragraph)
                     # Look for #spaced tags# that get removed only in the last paragraph.
@@ -71,7 +72,7 @@
                         $paragraph = preg_replace(&quot;/(\s|^)#([^ .,]+)(?!#)/&quot;, &quot;\\1\\2&quot;, $paragraph);
                     }
 
-                $value = str_replace(&quot;\\#&quot;, &quot;#&quot;, implode(&quot;\r\n&quot;, $paragraphs));
+                $value = str_replace(&quot;\\#&quot;, &quot;#&quot;, implode($mode, $paragraphs));
             }
 
             $_POST['tags'] = implode(&quot;, &quot;, $tags);</diff>
      <filename>modules/tags/tags.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>13584a277aa9ee7b35c7c1686e9e5dacea1f53db</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp/commit/69cb90bf89a13fc7ec09e1bd28d867a29a153910</url>
  <id>69cb90bf89a13fc7ec09e1bd28d867a29a153910</id>
  <committed-date>2008-11-06T12:49:00-08:00</committed-date>
  <authored-date>2008-11-06T12:49:00-08:00</authored-date>
  <message>Fixed incorrect rejoining of paragraphs in the bookmarklet when
submitting a post wiht Tagginator enabled.</message>
  <tree>0ed22b0714fbed042461c58c060aa6823e4dfcdc</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
