There was a syntax error in markup.scm
Also, ly_error would not pass the arguments to simple-format properly
if rest was a list in the scheme side (as in define-markup-function).
Therefore, if the format args are a list, get the car of rest in
ly_error so the args can be passed properly.
(cherry picked from commit
bc41f1ab4e112d7a75f7d3feb62589124d283fec)
" The error is formatted with @code{format} and @var{rest}.")
{
LY_ASSERT_TYPE (scm_is_string, str, 1);
+ if (scm_is_pair(scm_car(rest)))
+ rest=scm_car(rest);
str = scm_simple_format (SCM_BOOL_F, str, rest);
error (ly_scm2string (str));
return SCM_UNSPECIFIED;
(ly:error
(string-append
make-name ": "
- (_ "Invalid argument in position ~A. Expect: ~A, found: ~S.")
- error-msg))
+ (_ "Invalid argument in position ~A. Expect: ~A, found: ~S."))
+ error-msg)
(cons markup-function args))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;