1
0
Fork 0

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:
Peter Veenstra 2018-05-22 15:11:58 +00:00
parent cd9e7b3c07
commit dc5c83eb60

View file

@ -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;
}