Skip to content

Commit 3ccac1e

Browse files
committed
fix description formatting to match pegasus rules
1 parent 95bbc97 commit 3ccac1e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

PegasusExportPlugin/frmPegasusExport.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,16 @@ await Task.Run(() =>
195195

196196
if (!string.IsNullOrWhiteSpace(game.Notes))
197197
{
198-
gameMetadataBuilder.AppendLine($"description: {game.Notes}");
198+
var description = game.Notes.Split(new string[]{ @"\r\n",@"\n" }, StringSplitOptions.None);
199+
gameMetadataBuilder.AppendLine($"description: {description[0]}");
200+
201+
if (description.Length > 1)
202+
{
203+
for (int i = 1; i < description.Length; i++)
204+
{
205+
gameMetadataBuilder.AppendLine($" {(string.IsNullOrWhiteSpace(description[i]) ? "." : description[i])}");
206+
}
207+
}
199208
}
200209

201210
if (game.ReleaseDate != null)

0 commit comments

Comments
 (0)