Gregorian chant needs ragged-last = ##t, however, the staff line should not be affected by this: it is always drawn for the whole line width.
ragged-last = ##t