Only add return to buffer if it already contains data, which fixes extra return in generated autoexec.bat.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4103
This commit is contained in:
parent
cd9e7b3c07
commit
dc5c83eb60
1 changed files with 2 additions and 2 deletions
|
@ -649,8 +649,8 @@ string Section_prop::GetPropValue(string const& _property) const {
|
|||
}
|
||||
|
||||
bool Section_line::HandleInputline(string const& line) {
|
||||
data+=line;
|
||||
data+="\n";
|
||||
if (!data.empty()) data += "\n"; //Add return to previous line in buffer
|
||||
data += line;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue