summaryrefslogtreecommitdiffstats
path: root/Doc/perl
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-05-02 18:21:22 (GMT)
committerFred Drake <fdrake@acm.org>2003-05-02 18:21:22 (GMT)
commit98b25764245b03db6b70601cb9096f4b69582e27 (patch)
tree5ac651756f81f259eca207c6c2aa1dd718851f50 /Doc/perl
parentf06b90534bd917bb5628d8db4355517e69a2dac6 (diff)
downloadcpython-98b25764245b03db6b70601cb9096f4b69582e27.zip
cpython-98b25764245b03db6b70601cb9096f4b69582e27.tar.gz
cpython-98b25764245b03db6b70601cb9096f4b69582e27.tar.bz2
Avoid extraneous blank line generated in the middle of the document
head.
Diffstat (limited to 'Doc/perl')
-rw-r--r--Doc/perl/l2hinit.perl31
1 files changed, 15 insertions, 16 deletions
diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl
index 6bf86f8..8213740 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 : ''),
- "<html>\n<head>\n",
- ($BASE ? "<base href=\"$BASE\">\n" : ''),
- "<link rel=\"STYLESHEET\" href=\"$STYLESHEET\" type='text/css'>\n",
+ "<html>\n<head>",
+ ($BASE ? "\n<base href=\"$BASE\">" : ''),
+ "\n<link rel=\"STYLESHEET\" href=\"$STYLESHEET\" type='text/css'>",
($FAVORITES_ICON
- ? ('<link rel="SHORTCUT ICON" href="' . "$FAVORITES_ICON\">\n")
+ ? ("\n<link rel=\"SHORTCUT ICON\" href=\"" . "$FAVORITES_ICON\">")
: ''),
($EXTERNAL_UP_LINK
- ? ('<link rel="start" href="' . "$EXTERNAL_UP_LINK\""
- . ($EXTERNAL_UP_TITLE ? " title='$EXTERNAL_UP_TITLE'" : '')
- . ">\n")
+ ? ("\n<link rel='start' href='" . $EXTERNAL_UP_LINK
+ . ($EXTERNAL_UP_TITLE ?
+ "' title='$EXTERNAL_UP_TITLE'>" : "'>"))
: ''),
- "<link rel=\"first\" href=\"$FILE.html\"",
+ "\n<link rel=\"first\" href=\"$FILE.html\"",
($t_title ? " title='$t_title'" : ''),
- ">\n",
+ '>',
($HAVE_TABLE_OF_CONTENTS
- ? ('<link rel="contents" href="contents.html" title="Contents">'
- . ($HAVE_GENERAL_INDEX ? "\n" : ''))
+ ? "\n<link rel='contents' href='contents.html' title='Contents'>"
: ''),
($HAVE_GENERAL_INDEX
- ? '<link rel="index" href="genindex.html" title="Index">' . "\n"
+ ? "\n<link rel='index' href='genindex.html' title='Index'>"
: ''),
# 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.
- ? ("<link rel='last' href='about.html'"
- . " title='About this document...'>\n"
- . "<link rel='help' href='about.html'"
- . " title='About this document...'>\n")
+ ? ("\n<link rel='last' href='about.html'"
+ . " title='About this document...'>"
+ . "\n<link rel='help' href='about.html'"
+ . " title='About this document...'>")
: ''),
$more_links_mark,
"\n",