#include "engraver.hh"
#include "item.hh"
+#include "text-interface.hh"
#include "translator.icc"
if (!scm_is_eq (cue_name_, cue_text))
{
- text_ = make_item ("InstrumentSwitch", SCM_EOL);
- text_->set_property ("text", cue_text);
+ if (Text_interface::is_markup (cue_text))
+ {
+ text_ = make_item ("InstrumentSwitch", SCM_EOL);
+ text_->set_property ("text", cue_text);
+ }
cue_name_ = cue_text;
}
}