mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
tex2lyx/Parser.cpp: rename a function since it returns a mandatory argument
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24310 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
fa804db4ab
commit
7ba6ed2654
@ -317,7 +317,7 @@ string Parser::getOpt()
|
||||
return res.empty() ? string() : '[' + res + ']';
|
||||
}
|
||||
|
||||
string Parser::getFullParentheseOpt()
|
||||
string Parser::getFullParentheseArg()
|
||||
{
|
||||
Arg arg = getFullArg('(', ')');
|
||||
if (arg.first)
|
||||
|
@ -158,7 +158,7 @@ public:
|
||||
* <tt>\begin{name}</tt> must be parsed already, <tt>\end{name}</tt>
|
||||
* is parsed but not returned.
|
||||
*/
|
||||
std::string getFullParentheseOpt();
|
||||
std::string getFullParentheseArg();
|
||||
/// \returns getArg('(', ')') including the parentheses
|
||||
std::string const verbatimEnvironment(std::string const & name);
|
||||
/// Returns the character of the current token and increments the token position.
|
||||
|
@ -2349,10 +2349,10 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
||||
//\makebox() is part of the picture environment and different from \makebox{}
|
||||
//\makebox{} will be parsed by parse_box when bug 2956 is fixed
|
||||
else if (t.cs() == "makebox") {
|
||||
string arg = "\\makebox";
|
||||
string arg = t.asInput();
|
||||
if (p.next_token().character() == '(')
|
||||
//the syntax is: \makebox(x,y)[position]{content}
|
||||
arg += p.getFullParentheseOpt();
|
||||
arg += p.getFullParentheseArg();
|
||||
else
|
||||
//the syntax is: \makebox[width][position]{content}
|
||||
arg += p.getFullOpt();
|
||||
|
Loading…
Reference in New Issue
Block a user