<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,6 +8,9 @@ use Plack::Request;
 use Try::Tiny;
 use XML::Builder;
 use File::MimeInfo::Magic qw( mimetype globs );
+use constant DIR_STYLE =&gt; &lt;&lt;'';
+ul, li { margin: 0; padding: 0 }
+li { list-style-type: none }
 
 sub git { open my $rh, '-|', git =&gt; @_ or die $!; local $/; binmode $rh; &lt;$rh&gt; }
 
@@ -42,21 +45,18 @@ sub get_dir {
 	my $x = XML::Builder-&gt;new;
 	my $h = $x-&gt;register_ns( 'http://www.w3.org/1999/xhtml', '' );
 
-	return $x-&gt;root(
-		$h-&gt;html(
-			$h-&gt;head(
-				$h-&gt;title( $path ),
-				$h-&gt;style( { type =&gt; 'text/css' },
-					&quot;\nul, li { margin: 0; padding: 0 }&quot;,
-					&quot;\nli { list-style-type: none }&quot;,
-					&quot;\n&quot;,
-				)
-			),
-			$h-&gt;body( $h-&gt;ul( $h-&gt;li-&gt;foreach(
-				map { $h-&gt;a( { href =&gt; $_, class =&gt; ( m!(\A\.\.|/)\z! ? 'd' : 'f' ) }, $_ ) } @entry
-			) ) ),
+	return $x-&gt;root( $h-&gt;html(
+		$h-&gt;head(
+			$h-&gt;title( $path ),
+			$h-&gt;style( { type =&gt; 'text/css' }, &quot;\n&quot;.DIR_STYLE )
 		),
-	);
+		$h-&gt;body( $h-&gt;ul( &quot;\n&quot;, map {; $_, &quot;\n&quot; } $h-&gt;li-&gt;foreach(
+			map {
+				my $class = m!(\A\.\.|/)\z! ? 'd' : 'f';
+				$h-&gt;a( { href =&gt; $_, class =&gt; $class }, $_ );
+			} @entry
+		) ) ),
+	) );
 }
 
 sub get_mimetype {</diff>
      <filename>app.psgi</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>10058616faec9710aed53a5430477f7c5c6299c2</id>
    </parent>
  </parents>
  <author>
    <name>Aristotle Pagaltzis</name>
    <email>pagaltzis@gmx.de</email>
  </author>
  <url>http://github.com/ap/witigiki/commit/472db1ad7c5017c8320b9aba7813ab31e23df818</url>
  <id>472db1ad7c5017c8320b9aba7813ab31e23df818</id>
  <committed-date>2009-11-07T23:36:27-08:00</committed-date>
  <authored-date>2009-11-07T23:36:27-08:00</authored-date>
  <message>reduce some indentation in index generator</message>
  <tree>97afda3f6842a53787df83b882052feeffb85ed3</tree>
  <committer>
    <name>Aristotle Pagaltzis</name>
    <email>pagaltzis@gmx.de</email>
  </committer>
</commit>
