Skip to content

Commit ee5948c

Browse files
Bugfixing # 399
Bug #399 If BillInformation is empty, insert no linebreak
1 parent cecf206 commit ee5948c

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
@@ -1139,7 +1139,8 @@ public override string ToString()
11391139
//AddInf "logical" element
11401140
SwissQrCodePayload += (!string.IsNullOrEmpty(additionalInformation.UnstructureMessage) ? additionalInformation.UnstructureMessage : string.Empty) + br; //Ustrd
11411141
SwissQrCodePayload += additionalInformation.Trailer + br; //Trailer
1142-
SwissQrCodePayload += (!string.IsNullOrEmpty(additionalInformation.BillInformation) ? additionalInformation.BillInformation : string.Empty) + br; //StrdBkgInf
1142+
// Bug #399 If BillInformation is empty, insert no linebreak
1143+
SwissQrCodePayload += (!string.IsNullOrEmpty(additionalInformation.BillInformation) ? additionalInformation.BillInformation + br : string.Empty); //StrdBkgInf
11431144

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

0 commit comments

Comments
 (0)