<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -113,7 +113,7 @@ static void print_html_element(GString *out, element *elt, bool obfuscate) {
         g_string_append_printf(out, &quot;%s&quot;, elt-&gt;contents.str);
         break;
     case LINEBREAK:
-        g_string_append_printf(out, &quot;&lt;br/&gt;&quot;);
+        g_string_append_printf(out, &quot;&lt;br/&gt;\n&quot;);
         break;
     case STR:
         print_html_string(out, elt-&gt;contents.str, obfuscate);
@@ -564,7 +564,7 @@ static void print_groff_mm_element(GString *out, element *elt, int count) {
         break;
     case LINEBREAK:
         pad(out, 1);
-        g_string_append_printf(out, &quot;.br&quot;);
+        g_string_append_printf(out, &quot;.br\n&quot;);
         padded = 0;
         break;
     case STR:</diff>
      <filename>markdown_output.c</filename>
    </modified>
    <modified>
      <diff>@@ -329,7 +329,6 @@ Inlines  =  a:StartList ( !Endline Inline { a = cons($$, a); }
             { $$ = mk_list(LIST, a); }
 
 Inline  = Str
-        | LineBreak
         | Endline
         | UlOrStarLine
         | Space
@@ -359,7 +358,7 @@ EscapedChar =   '\\' !Newline &lt; . &gt;
 Entity =    ( HexEntity | DecEntity | CharEntity )
             { $$ = mk_str(yytext); $$-&gt;key = HTML; }
 
-Endline =   TerminalEndline | NormalEndline
+Endline =   LineBreak | TerminalEndline | NormalEndline
 
 NormalEndline =   Sp Newline !BlankLine !BlockQuote !AtxStart
                   !(Line (&quot;===&quot; '='* | &quot;---&quot; '-'*) Newline)
@@ -369,7 +368,7 @@ NormalEndline =   Sp Newline !BlankLine !BlockQuote !AtxStart
 TerminalEndline = Sp Newline Eof
                   { $$ = NULL; }
 
-LineBreak = &quot;  &quot; Endline
+LineBreak = &quot;  &quot; NormalEndline
             { $$ = mk_element(LINEBREAK); }
 
 Symbol =    &lt; SpecialChar &gt;</diff>
      <filename>markdown_parser.leg</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>98f54c734ee6bd00455622fb13b29f31769158fe</id>
    </parent>
  </parents>
  <author>
    <name>John MacFarlane</name>
    <email>jgm@berkeley.edu</email>
  </author>
  <url>http://github.com/jgm/peg-markdown/commit/c731b2d0feb5991b02a35c4637f003b7f1ed98f4</url>
  <id>c731b2d0feb5991b02a35c4637f003b7f1ed98f4</id>
  <committed-date>2008-11-17T22:25:57-08:00</committed-date>
  <authored-date>2008-11-17T22:25:57-08:00</authored-date>
  <message>Fixed parsing of markdown line breaks.

Line breaks are now handled in the Endline parser.</message>
  <tree>7527f1cfe2dc7a2358edf1d2dd09180ada0d146e</tree>
  <committer>
    <name>John MacFarlane</name>
    <email>jgm@berkeley.edu</email>
  </committer>
</commit>
