diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl
index 6bf86f859c5..8213740da53 100644
--- a/Doc/perl/l2hinit.perl
+++ b/Doc/perl/l2hinit.perl
@@ -614,26 +614,25 @@ sub make_head_and_body($$) {
$STYLESHEET = $FILE.".css" unless $STYLESHEET;
$MY_PARTIAL_HEADER = join('',
($DOCTYPE ? $DTDcomment : ''),
- "\n
\n",
- ($BASE ? "\n" : ''),
- "\n",
+ "\n",
+ ($BASE ? "\n" : ''),
+ "\n",
($FAVORITES_ICON
- ? ('\n")
+ ? ("\n")
: ''),
($EXTERNAL_UP_LINK
- ? ('\n")
+ ? ("\n" : "'>"))
: ''),
- "\n",
+ '>',
($HAVE_TABLE_OF_CONTENTS
- ? (''
- . ($HAVE_GENERAL_INDEX ? "\n" : ''))
+ ? "\n"
: ''),
($HAVE_GENERAL_INDEX
- ? '' . "\n"
+ ? "\n"
: ''),
# disable for now -- Mozilla doesn't do well with multiple indexes
# ($HAVE_MODULE_INDEX
@@ -645,10 +644,10 @@ sub make_head_and_body($$) {
# page always gets copied to about.html, even when we use the
# generated node###.html page names. Won't work with the
# rest of the Python doc tools.
- ? ("\n"
- . "\n")
+ ? ("\n"
+ . "\n")
: ''),
$more_links_mark,
"\n",