Ricetta:
- aggiunta output XML - fix struttura dati
This commit is contained in:
@@ -184,9 +184,9 @@ namespace MP.Data.Controllers
|
||||
foreach (var item in currRecipe.RowsVal)
|
||||
{
|
||||
var rowsStrings = item.Value.Select(x => $"\"{x.Key}\": \"{x.Value}\"").ToList();
|
||||
rowComp.Add($"{Environment.NewLine}{sRow}{string.Join(",", rowsStrings)}{eRow}");
|
||||
rowComp.Add($"{sRow}{string.Join(",", rowsStrings)}{eRow}");
|
||||
}
|
||||
string rowsVals = string.Join(",", rowComp);
|
||||
string rowsVals = string.Join($",{Environment.NewLine}", rowComp);
|
||||
//...poi sostituisco
|
||||
answ = answ.Replace("||PlaceholderRows||", rowsVals);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user