mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +00:00
backporting tex2lyx: some simplifications
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40032 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7de601b63e
commit
8472702349
@ -2482,14 +2482,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
||||
}
|
||||
|
||||
else if (t.cs() == "rule") {
|
||||
string offset = "";
|
||||
string width;
|
||||
string thickness;
|
||||
if (p.hasOpt())
|
||||
offset = p.getArg('[', ']');
|
||||
width = p.getArg('{', '}');
|
||||
thickness = p.getArg('{', '}');
|
||||
|
||||
string const offset = (p.hasOpt() ? p.getArg('[', ']') : string());
|
||||
string const width = p.getArg('{', '}');
|
||||
string const thickness = p.getArg('{', '}');
|
||||
context.check_layout(os);
|
||||
begin_command_inset(os, "line", "rule");
|
||||
if (!offset.empty())
|
||||
|
Loading…
Reference in New Issue
Block a user