mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
BufferParams.cpp, InsetListings.cpp: fix two Unicode strings, patch by Vincent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@26325 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
aab7cfe183
commit
a8afed86ff
@ -929,7 +929,7 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
|
||||
os << "\\lstset{";
|
||||
// do not test validity because listings_params is supposed to be valid
|
||||
string par = InsetListingsParams(listings_params).separatedParams(true);
|
||||
os << from_ascii(par);
|
||||
os << from_utf8(par);
|
||||
// count the number of newlines
|
||||
for (size_t i = 0; i < par.size(); ++i)
|
||||
if (par[i] == '\n')
|
||||
|
@ -180,7 +180,7 @@ int InsetListings::latex(Buffer const & buf, odocstream & os,
|
||||
if (param_string.empty())
|
||||
os << "\\lstinline" << *delimiter;
|
||||
else
|
||||
os << "\\lstinline[" << from_ascii(param_string) << "]" << *delimiter;
|
||||
os << "\\lstinline[" << from_utf8(param_string) << "]" << *delimiter;
|
||||
} else {
|
||||
OutputParams rp = runparams;
|
||||
rp.local_font = &text_.real_current_font;
|
||||
|
Loading…
x
Reference in New Issue
Block a user