mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +00:00
Typos and comment improvements.
This commit is contained in:
parent
46b8101800
commit
b5533a24f4
@ -2106,8 +2106,7 @@ Buffer::ExportStatus Buffer::makeDocBookFile(FileName const & fname,
|
|||||||
updateBuffer();
|
updateBuffer();
|
||||||
updateMacroInstances(OutputUpdate);
|
updateMacroInstances(OutputUpdate);
|
||||||
|
|
||||||
ExportStatus const retval =
|
ExportStatus const retval = writeDocBookSource(ofs, runparams, output);
|
||||||
writeDocBookSource(ofs, runparams, output);
|
|
||||||
if (retval == ExportKilled)
|
if (retval == ExportKilled)
|
||||||
return ExportKilled;
|
return ExportKilled;
|
||||||
|
|
||||||
@ -4371,6 +4370,9 @@ Buffer::ExportStatus Buffer::doExport(string const & target, bool put_in_tempdir
|
|||||||
|
|
||||||
void Buffer::setMathFlavor(OutputParams & op) const
|
void Buffer::setMathFlavor(OutputParams & op) const
|
||||||
{
|
{
|
||||||
|
// Passes the way to generate formulae to the XHTML output code.
|
||||||
|
// In particular, this function has no impact on the DocBook code, as it
|
||||||
|
// uses another mechanism to handle math flavours.
|
||||||
switch (params().html_math_output) {
|
switch (params().html_math_output) {
|
||||||
case BufferParams::MathML:
|
case BufferParams::MathML:
|
||||||
op.math_flavor = OutputParams::MathAsMathML;
|
op.math_flavor = OutputParams::MathAsMathML;
|
||||||
@ -4414,7 +4416,7 @@ Buffer::ExportStatus Buffer::doExport(string const & target, bool put_in_tempdir
|
|||||||
Converters converters = theConverters();
|
Converters converters = theConverters();
|
||||||
bool need_nice_file = false;
|
bool need_nice_file = false;
|
||||||
if (find(backs.begin(), backs.end(), format) == backs.end()) {
|
if (find(backs.begin(), backs.end(), format) == backs.end()) {
|
||||||
// Get shortest path to format
|
// Get the shortest path to format
|
||||||
converters.buildGraph();
|
converters.buildGraph();
|
||||||
Graph::EdgePath path;
|
Graph::EdgePath path;
|
||||||
for (string const & sit : backs) {
|
for (string const & sit : backs) {
|
||||||
@ -4580,7 +4582,7 @@ Buffer::ExportStatus Buffer::doExport(string const & target, bool put_in_tempdir
|
|||||||
result_file = changeExtension(d->exportFileName().absFileName(), ext);
|
result_file = changeExtension(d->exportFileName().absFileName(), ext);
|
||||||
else
|
else
|
||||||
result_file = dest_filename;
|
result_file = dest_filename;
|
||||||
// We need to copy referenced files (e. g. included graphics
|
// We need to copy referenced files (e.g. included graphics
|
||||||
// if format == "dvi") to the result dir.
|
// if format == "dvi") to the result dir.
|
||||||
vector<ExportedFile> const extfiles =
|
vector<ExportedFile> const extfiles =
|
||||||
runparams.exportdata->externalFiles(format);
|
runparams.exportdata->externalFiles(format);
|
||||||
|
@ -123,7 +123,7 @@ graphics::PreviewImage const *
|
|||||||
RenderPreview::getPreviewImage(Buffer const & buffer) const
|
RenderPreview::getPreviewImage(Buffer const & buffer) const
|
||||||
{
|
{
|
||||||
graphics::PreviewLoader const * loader = buffer.loader();
|
graphics::PreviewLoader const * loader = buffer.loader();
|
||||||
LASSERT(loader, return 0);
|
LASSERT(loader, return nullptr);
|
||||||
return loader->preview(snippet_);
|
return loader->preview(snippet_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -802,7 +802,7 @@ DocBookInfoTag getParagraphsWithInfo(ParagraphList const ¶graphs,
|
|||||||
set<pit_type> abstractWithLayout;
|
set<pit_type> abstractWithLayout;
|
||||||
set<pit_type> abstractNoLayout;
|
set<pit_type> abstractNoLayout;
|
||||||
|
|
||||||
// Find the first non empty paragraph by mutating bpit.
|
// Find the first nonempty paragraph by mutating bpit.
|
||||||
while (bpit < epit) {
|
while (bpit < epit) {
|
||||||
Paragraph const &par = paragraphs[bpit];
|
Paragraph const &par = paragraphs[bpit];
|
||||||
if (par.empty() || hasOnlyNotes(par))
|
if (par.empty() || hasOnlyNotes(par))
|
||||||
|
Loading…
Reference in New Issue
Block a user