Add a few else statements to make the checking work correct. Thanks Tiago Gusmao for detecting this.
This commit is contained in:
parent
2bc09e5268
commit
99a7850cc7
1 changed files with 2 additions and 2 deletions
|
@ -79,9 +79,9 @@ FGGeneric::FGGeneric(string& config) {
|
||||||
|
|
||||||
if ( line_sep_string == "newline" )
|
if ( line_sep_string == "newline" )
|
||||||
line_separator = '\n';
|
line_separator = '\n';
|
||||||
if ( line_sep_string == "tab" )
|
else if ( line_sep_string == "tab" )
|
||||||
line_separator = '\t';
|
line_separator = '\t';
|
||||||
if ( line_sep_string == "space" )
|
else if ( line_sep_string == "space" )
|
||||||
line_separator = ' ';
|
line_separator = ' ';
|
||||||
else if ( line_sep_string == "formfeed" )
|
else if ( line_sep_string == "formfeed" )
|
||||||
line_separator = '\f';
|
line_separator = '\f';
|
||||||
|
|
Loading…
Reference in a new issue