]> git.donarmstrong.com Git - lilypond.git/commitdiff
Let \hspace and \vspace use Y-empty and X-empty spacing, respectively
authorDavid Kastrup <dak@gnu.org>
Sat, 27 Apr 2013 13:01:18 +0000 (15:01 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 26 May 2013 00:33:03 +0000 (02:33 +0200)
scm/define-markup-commands.scm

index 1b81a508ddd13a62206195c61f63df50e993809c..9df3fe8a32bd9d3c467ade24084099c9f9e4f75c 100755 (executable)
@@ -693,7 +693,6 @@ Create a box of the same height as the space in the current font."
 (define-markup-command (hspace layout props amount)
   (number?)
   #:category align
-  #:properties ((word-space))
   "
 @cindex creating horizontal spaces in text
 
@@ -708,8 +707,7 @@ Create an invisible object taking up horizontal space @var{amount}.
   three
 }
 @end lilypond"
-  (let ((corrected-space (- amount word-space)))
-    (ly:make-stencil "" (cons 0 corrected-space) '(0 . 0))))
+  (ly:make-stencil "" (cons 0 amount) empty-interval))
 
 (define-markup-command (vspace layout props amount)
  (number?)
@@ -732,7 +730,7 @@ of @var{amount} multiplied by 3.
 }
 @end lilypond"
   (let ((amount (* amount 3.0)))
-    (ly:make-stencil "" (cons 0 0) (cons 0 amount))))
+    (ly:make-stencil "" empty-interval (cons 0 amount))))
 
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;