LaTeXParam and Argument do not necessarily exclude each other

This commit is contained in:
Juergen Spitzmueller 2012-11-26 13:09:54 +01:00
parent d058b0425f
commit 4d1b495139
2 changed files with 2 additions and 4 deletions

View File

@ -1464,8 +1464,7 @@ void Paragraph::Private::validate(LaTeXFeatures & features) const
if (!layout_->latexargs().empty())
latexArgInsets(*owner_, os, features.runparams(),
layout_->latexargs());
else
os << from_ascii(layout_->latexparam());
os << from_ascii(layout_->latexparam());
}
docstring::size_type const length = ods.str().length();
// this will output "{" at the beginning, but not at the end

View File

@ -409,8 +409,7 @@ void parStartCommand(Paragraph const & par, otexstream & os,
// Separate handling of optional argument inset.
if (!style.latexargs().empty())
latexArgInsets(par, os, runparams, style.latexargs());
else
os << from_ascii(style.latexparam());
os << from_ascii(style.latexparam());
break;
case LATEX_ITEM_ENVIRONMENT:
case LATEX_LIST_ENVIRONMENT: