<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -315,9 +315,9 @@ blockToHtml :: [([Inline],(String, String))]  -- ^ list of link references
             -&gt; Doc
 blockToHtml refs block =
   case block of
-    Para xs           -&gt; inTagsSimple &quot;p&quot; $ wrap refs xs
-    Plain xs          -&gt; wrap refs xs
-    Heading lev xs    -&gt; inTagsSimple (&quot;h&quot; ++ show lev) $ hcat $ map (inlineToHtml refs) xs
+    Para xs           -&gt; inTagsSimple &quot;p&quot; $ wrap refs $ lrstrip Space xs
+    Plain xs          -&gt; wrap refs $ lrstrip Space xs
+    Heading lev xs    -&gt; inTagsSimple (&quot;h&quot; ++ show lev) $ hcat $ map (inlineToHtml refs) $ lrstrip Space xs
     HorizontalRule    -&gt; selfClosingTag &quot;hr&quot; []
     BlockQuote xs     -&gt; inTagsIndented &quot;blockquote&quot; $ vcat $ map (blockToHtml refs) xs
     Verbatim s        -&gt; inTagsSimple &quot;pre&quot; $ inTagsSimple &quot;code&quot; $ P.text $ escapeStringForXML s</diff>
      <filename>Markdown.hs</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>416ec6bbed37a147b39a29434aed2bfe761c361d</id>
    </parent>
  </parents>
  <author>
    <name>John MacFarlane</name>
    <email>jgm@berkeley.edu</email>
  </author>
  <url>http://github.com/jgm/markdown-peg/commit/4438c336444a714f15ed619c9897d91c3ab6b40e</url>
  <id>4438c336444a714f15ed619c9897d91c3ab6b40e</id>
  <committed-date>2008-04-10T17:20:34-07:00</committed-date>
  <authored-date>2008-04-10T17:20:34-07:00</authored-date>
  <message>Remove leading and trailing spaces in paragraph, plain, and headers.</message>
  <tree>53a0ce60ddb808acaaf2e8e78f34864ab60507c3</tree>
  <committer>
    <name>John MacFarlane</name>
    <email>jgm@berkeley.edu</email>
  </committer>
</commit>
