Skip to content

Commit

Permalink
imp - Use AppendLine() to append MeCard converted lines
Browse files Browse the repository at this point in the history
---

Instead of using Environment.NewLine, we need to use AppendLine() instead.

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Nov 25, 2023
1 parent 2c8fd4c commit 90ace18
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion VisualCard/Converters/MeCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ public static List<BaseVcardParser> GetContactsFromMeCardString(string meCardStr
$"""
BEGIN:VCARD
VERSION:3.0
{string.Join(Environment.NewLine, values)}
"""
);
foreach (var value in values)
masterContactBuilder.AppendLine(value);
masterContactBuilder.AppendLine(
$"""
FN:{fullName}
END:VCARD
"""
Expand Down

0 comments on commit 90ace18

Please sign in to comment.