%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************



\paper {
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}





% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "/home/gub/NewGub/gub/target/linux-x86/src/lilypond-git.sv.gnu.org--lilypond.git-stable-2.22/input/regression/volta-broken-left-edge.ly"
\sourcefileline 0
\version "2.16.0"

\header {
  texidoc ="Broken volta spanners behave correctly at their left edge in all cases."

}

\layout { ragged-right =##t }

%{


I recently discovered that although the following patch seemed to fix
the original complaint that it causes other problems (the following
tests were done in 1.3.116.

I have attached a file which has several break-volta interactions.

With the test file and unmodified 1.3.116 I see the following:

Bar 3 - 1st volta spanner centered on first note - prefer it to start
closer to key signature (can live with this)
Bar 6 - 1st volta continuation - perfect
Bar 9 - 2nd volta spanner starts on left edge of key signature - prefer
it to start right of key signature
Bar 12 	1st volta starts between first two slurred notes in measure -
this is not acceptable
Bar 17	like above with hairpin.
Bar 23	like above (I had expected this to be OK)
Bar 20	2nd volta continuation perfect

With the test file and 1.3.116 modified as below I see the following:

Bar 3	Perfect
Bar 6	1st volta continuation starts with staff - oops
Bar 9  	2nd volta starts on papers left margin - OOPS!
Bar 12	Perfect
Bar 17 	Perfect
Bar 20	2nd volta continuation starts with staff - oops
Bar 23	Perfect

%}

voiceB =  {
  \clef bass
  \set Staff.instrumentName = "Bass"
  \set Staff.shortInstrumentName = "B"
  \key f \minor 
  \time 4/4  
  f1
  \repeat  volta 2
  {
    f1    \break
  }
  \alternative
  {
    { 	
      f1 f g \break   
      f e d  \break   
    }
    {   
      f1      | 
    }
  }
}
voiceC =  {
  \repeat volta 2
  {
    f f 
    \break
  }
  \alternative
  {
    f
    { f f }
  }
}

voiceD =  {
  \repeat volta 2
  {
    f f 
    \break
  }
  \alternative
  {
    {	f
      }
    {	f f \break f 
      }
  }
}
voiceE =  {
  \repeat volta 2
  {
    f f\break
  }
  \alternative
  {
    {	
      f

    }
    {	
      f f 
    }
  }
}

<<


  \new Staff
  {
    \voiceB 
    \voiceC
    \break
    \voiceD
    \voiceE
  }

>>






% ****************************************************************
% end ly snippet
% ****************************************************************
