Indentation fixes

This commit is contained in:
Juergen Spitzmueller 2020-02-07 16:03:56 +01:00
parent 59fa0b2592
commit 4fd4310ea7

View File

@ -745,8 +745,7 @@ Encoding const * DocIterator::getEncoding() const
CursorSlice const & sl = innerTextSlice();
Text const & text = *sl.text();
Language const * lang =
text.getPar(sl.pit()).getFont(bp, sl.pos(),
text.outerFont(sl.pit())).language();
text.getPar(sl.pit()).getFont(bp, sl.pos(), text.outerFont(sl.pit())).language();
// If we have a custom encoding for the buffer, we don't switch
// encodings (see output_latex::switchEncoding())
bool const customenc = bp.inputenc != "auto-legacy" && bp.inputenc != "auto-legacy-plain";
@ -781,8 +780,7 @@ Encoding const * DocIterator::getEncoding() const
otext.outerFont(slices_[i].pit())).language();
// Again, if we have a custom encoding, this is used
// instead of the language's.
Encoding const * oenc = customenc
? &bp.encoding() : olang->encoding();
Encoding const * oenc = customenc ? &bp.encoding() : olang->encoding();
if (olang->encoding()->name() != "inherit")
return oenc;
}