summaryrefslogtreecommitdiff
path: root/ly
diff options
context:
space:
mode:
authorKnut Petersen <knut_petersen@t-online.de>2015-12-22 09:10:50 +0000
committerJames Lowe <pkx166h@gmail.com>2015-12-28 09:03:52 +0000
commitd5bc965bceff7f08e1419bc73c039f395b4498d2 (patch)
tree4e4972661c43bae368ea84ece52d446e40d56e3b /ly
parentd9e5d62a3028e1b5e2ee150cc40d375599c98538 (diff)
Dont emit \space glyph as empty page number
Werner L reported in 2012 that LP emits a space glyph referencing the century schoolbook font at the top of every page. If you use gs (old and current) or pdfcrop to crop output with multiple pages and print-page-number = ##f there is excessive white space at the top of even pages. ghostscript should handle that better but a recent gs bug report http://bugs.ghostscript.com/show_bug.cgi?id=696445 was closed as "WONTFIX". There is a workaround within lilypond: \paper { [...] oddHeaderMarkup = \markup \null evenHeaderMarkup = \markup \null } Changing " " to "" cured the problem and appears to have no negative side effects. Bounding boxes are affected by this patch certainly so will have effects in situations where snippets are used by other third party programs.
Diffstat (limited to 'ly')
-rw-r--r--ly/titling-init.ly6
1 files changed, 2 insertions, 4 deletions
diff --git a/ly/titling-init.ly b/ly/titling-init.ly
index f397ad6bd9..12bfa4f340 100644
--- a/ly/titling-init.ly
+++ b/ly/titling-init.ly
@@ -149,9 +149,7 @@ book last one."
oddHeaderMarkup = \markup
\fill-line {
- %% force the header to take some space, otherwise the
- %% page layout becomes a complete mess.
- " "
+ ""
\on-the-fly #not-part-first-page \fromproperty #'header:instrument
\on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string
}
@@ -162,7 +160,7 @@ evenHeaderMarkup = \markup
\fill-line {
\on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string
\on-the-fly #not-part-first-page \fromproperty #'header:instrument
- " "
+ ""
}
oddFooterMarkup = \markup {