<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1740,12 +1740,14 @@ sub _ParseMetaData {
 	my ($inMetaData, $currentKey) = (1,'');
 	
 	foreach my $line ( split /\n/, $text ) {
-		$line =~ /^$/ and $inMetaData = 0 and $clean_text .= $line and next;
+		$line =~ /^$/ and $inMetaData = 0;
 		if ($inMetaData) {
 			if ($line =~ /^([a-zA-Z0-9][0-9a-zA-Z _-]*?):\s*(.*)$/ ) {
 				$currentKey = $1;
-				$currentKey =~ s/  / /g;
-				$g_metadata{$currentKey} = $2;
+				my $meta = $2;
+				$currentKey =~ s/\s+/ /g;
+				$currentKey =~ s/\s$//;
+				$g_metadata{$currentKey} = $meta;
 				if (lc($currentKey) eq &quot;format&quot;) {
 					$g_document_format = lc($g_metadata{$currentKey});
 				}</diff>
      <filename>bin/MultiMarkdown.pl</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3aa82b6d7b27ec25abd32e2b473d030de0221d28</id>
    </parent>
  </parents>
  <author>
    <name>Fletcher T. Penney</name>
    <email>fletcher@sheba.gateway.2wire.net</email>
  </author>
  <url>http://github.com/Oblomov/MultiMarkdown/commit/09203e2368eb1b2c7749ca0bc3b7a3ff366f4b55</url>
  <id>09203e2368eb1b2c7749ca0bc3b7a3ff366f4b55</id>
  <committed-date>2009-07-09T07:01:22-07:00</committed-date>
  <authored-date>2009-07-09T07:01:22-07:00</authored-date>
  <message>Clean up metadata parsing a bit - Thanks Stephan</message>
  <tree>727075bf4f842eb05843c7d32a1ccc5b7410dddf</tree>
  <committer>
    <name>Fletcher T. Penney</name>
    <email>fletcher@sheba.gateway.2wire.net</email>
  </committer>
</commit>
