Oversmarted myself. Wanted to save .lyx header from overbloating but
dialog's UI depends on those tokens when disabling the option in UI.
<< "\n\\justification " << convert<string>(justification)
<< "\n\\use_refstyle " << use_refstyle
<< "\n\\use_minted " << use_minted
+ << "\n\\use_lineno " << use_lineno
<< '\n';
- if (use_lineno)
- os << "\\use_lineno " << use_lineno << '\n';
- if (!lineno_opts.empty())
- os << "\\lineno_options " << lineno_opts << '\n';
+ os << "\\lineno_options " << lineno_opts << '\n';
if (isbackgroundcolor == true)
os << "\\backgroundcolor " << lyx::X11hexname(backgroundcolor) << '\n';