Skip to content

Commit 12a0561

Browse files
authored
Merge pull request #411 from RamonaFrickCH/patch-1
Bugfixing # 399
2 parents 3ee20f6 + ee5948c commit 12a0561

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

QRCoder/PayloadGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,8 @@ public override string ToString()
11401140
//AddInf "logical" element
11411141
SwissQrCodePayload += (!string.IsNullOrEmpty(additionalInformation.UnstructureMessage) ? additionalInformation.UnstructureMessage : string.Empty) + br; //Ustrd
11421142
SwissQrCodePayload += additionalInformation.Trailer + br; //Trailer
1143-
SwissQrCodePayload += (!string.IsNullOrEmpty(additionalInformation.BillInformation) ? additionalInformation.BillInformation : string.Empty) + br; //StrdBkgInf
1143+
// Bug #399 If BillInformation is empty, insert no linebreak
1144+
SwissQrCodePayload += (!string.IsNullOrEmpty(additionalInformation.BillInformation) ? additionalInformation.BillInformation + br : string.Empty); //StrdBkgInf
11441145

11451146
//AltPmtInf "logical" element
11461147
if (!string.IsNullOrEmpty(alternativeProcedure1))

0 commit comments

Comments
 (0)