break;
case LT_LABELSTRING: // label string definition
- if (lexrc.next())
- labelstring_ = lyx::from_ascii(trim(lexrc.getString()));
+ if (lexrc.next()) {
+ labelstring_ = trim(lexrc.getDocString());
+ labelstring_appendix_ = labelstring_;
+ }
break;
case LT_ENDLABELSTRING: // endlabel string definition
if (lexrc.next())
- endlabelstring_ = lyx::from_ascii(trim(lexrc.getString()));
+ endlabelstring_ = trim(lexrc.getDocString());
break;
case LT_LABELSTRING_APPENDIX: // label string appendix definition
if (lexrc.next())
- labelstring_appendix_ = lyx::from_ascii(trim(lexrc.getString()));
+ labelstring_appendix_ = trim(lexrc.getDocString());
break;
case LT_LABELCOUNTER: // name of counter to use
}
lexrc.popTable();
- if (labelstring_appendix_.empty())
- labelstring_appendix_ = labelstring_;
return error;
}