mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Simplify b3fe9cb704
This commit is contained in:
parent
b3fe9cb704
commit
f9c60d477d
@ -852,7 +852,6 @@ void PreviewLoader::Impl::dumpData(odocstream & os,
|
|||||||
Encoding const & enc = buffer_.params().encoding();
|
Encoding const & enc = buffer_.params().encoding();
|
||||||
|
|
||||||
for (; it != end; ++it) {
|
for (; it != end; ++it) {
|
||||||
docstring res;
|
|
||||||
bool uncodable_content = false;
|
bool uncodable_content = false;
|
||||||
// check whether the content is encodable
|
// check whether the content is encodable
|
||||||
// FIXME: the preview loader should be able
|
// FIXME: the preview loader should be able
|
||||||
@ -864,14 +863,13 @@ void PreviewLoader::Impl::dumpData(odocstream & os,
|
|||||||
<< docstring(1, n)
|
<< docstring(1, n)
|
||||||
<< "' in preview snippet!");
|
<< "' in preview snippet!");
|
||||||
uncodable_content = true;
|
uncodable_content = true;
|
||||||
} else
|
}
|
||||||
res += n;
|
|
||||||
}
|
}
|
||||||
// FIXME UNICODE
|
// FIXME UNICODE
|
||||||
os << "\\begin{preview}\n";
|
os << "\\begin{preview}\n";
|
||||||
// do not show incomplete preview
|
// do not show incomplete preview
|
||||||
if (!uncodable_content)
|
if (!uncodable_content)
|
||||||
os << res;
|
os << from_utf8(it->first);
|
||||||
os << "\n\\end{preview}\n\n";
|
os << "\n\\end{preview}\n\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user