diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index 673db1f639..03002f04f3 100755
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
@@ -416,7 +416,7 @@ sub git_page_nav {
: $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=$_$arg{$_}")}, "$_")
}
@navs);
- print "
$extra
\n" .
+ print "
\n$extra
\n" .
"\n";
}