Merge pull request #6892 from ioxp:fsSpace

This commit is contained in:
Alexander Alekhin
2016-07-13 11:46:50 +00:00
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1852,7 +1852,7 @@ icvYMLWriteString( CvFileStorage* fs, const char* key,
if( quote || len == 0 || str[0] != str[len-1] || (str[0] != '\"' && str[0] != '\'') )
{
int need_quote = quote || len == 0;
int need_quote = quote || len == 0 || str[0] == ' ';
data = buf;
*data++ = '\"';
for( i = 0; i < len; i++ )