mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Handle comments in options
Things like pdfpagemode=UseOutlines%None,UseOutlines,UseThumbs,FullScreen was not imported correctly (the comment was not stripped) Fixes the rest of #5737
This commit is contained in:
parent
2afd21bd21
commit
820ec38da7
@ -259,7 +259,7 @@ vector<string> split_options(string const & input)
|
|||||||
p.skip_spaces(true);
|
p.skip_spaces(true);
|
||||||
if (p.next_token().asInput() == "{")
|
if (p.next_token().asInput() == "{")
|
||||||
option += '{' + p.getArg('{', '}') + '}';
|
option += '{' + p.getArg('{', '}') + '}';
|
||||||
} else if (t.cat() != catSpace)
|
} else if (t.cat() != catSpace && t.cat() != catComment)
|
||||||
option += t.asInput();
|
option += t.asInput();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -553,7 +553,7 @@ Preamble::Preamble() : one_language(true), explicit_babel(false),
|
|||||||
h_use_geometry = "false";
|
h_use_geometry = "false";
|
||||||
h_use_default_options = "false";
|
h_use_default_options = "false";
|
||||||
h_use_hyperref = "false";
|
h_use_hyperref = "false";
|
||||||
h_use_microtype = "false";
|
h_use_microtype = "false";
|
||||||
h_use_refstyle = false;
|
h_use_refstyle = false;
|
||||||
h_use_minted = false;
|
h_use_minted = false;
|
||||||
h_use_packages["amsmath"] = "1";
|
h_use_packages["amsmath"] = "1";
|
||||||
|
Loading…
Reference in New Issue
Block a user