fix minify on empty case creating incorrect syntax
This commit is contained in:
parent
40aee8e3cf
commit
0be14815fa
1 changed files with 3 additions and 1 deletions
|
|
@ -315,10 +315,12 @@ std::string case_block::generate(int ind, generate_context* ctx)
|
||||||
ret+="\n";
|
ret+="\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace ;; from last case with ;
|
// replace ;; from last case with \n
|
||||||
if(this->cases.size()>0 && opt_minify)
|
if(this->cases.size()>0 && opt_minify)
|
||||||
{
|
{
|
||||||
ret.pop_back();
|
ret.pop_back();
|
||||||
|
ret.pop_back();
|
||||||
|
ret+='\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
// close case
|
// close case
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue