mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
BufferParams.cpp: correct output for \mathindent after [fc1c5c6f/lyxgit]
- also adapt the lyx2lyx logic to the changed implementation
This commit is contained in:
parent
5c91be293d
commit
3677c20be9
@ -2000,11 +2000,12 @@ def revert_mathindent(document):
|
||||
add_to_preamble(document, ["\\setlength{\\mathindent}{" + value + '}'])
|
||||
del document.header[i]
|
||||
# now set the document class option
|
||||
regexp = re.compile(r'(\\is_math_indent)')
|
||||
regexp = re.compile(r'(\\is_math_indent 1)')
|
||||
i = find_re(document.header, regexp, 0)
|
||||
value = "1"
|
||||
if i == -1:
|
||||
return
|
||||
regexp = re.compile(r'(\\is_math_indent)')
|
||||
j = find_re(document.header, regexp, 0)
|
||||
del document.header[j]
|
||||
else:
|
||||
k = find_token(document.header, "\\options", 0)
|
||||
if k != -1:
|
||||
|
@ -1348,7 +1348,7 @@ void BufferParams::writeFile(ostream & os, Buffer const * buf) const
|
||||
else
|
||||
os << "\n\\defskip " << getDefSkip().asLyXCommand();
|
||||
os << "\n\\is_math_indent " << is_math_indent;
|
||||
if (is_math_indent)
|
||||
if (is_math_indent && getMathIndentation().asLyXCommand() != "default")
|
||||
os << "\n\\math_indentation " << getMathIndentation().asLyXCommand();
|
||||
os << "\n\\quotes_style "
|
||||
<< string_quotes_style[quotes_style]
|
||||
|
Loading…
Reference in New Issue
Block a user