Skip to content

Commit

Permalink
Merge pull request #411 from RamonaFrickCH/patch-1
Browse files Browse the repository at this point in the history
Bugfixing # 399
  • Loading branch information
codebude committed Apr 20, 2024
2 parents 3ee20f6 + ee5948c commit 12a0561
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion QRCoder/PayloadGenerator.cs
Expand Up @@ -1140,7 +1140,8 @@ public override string ToString()
//AddInf "logical" element
SwissQrCodePayload += (!string.IsNullOrEmpty(additionalInformation.UnstructureMessage) ? additionalInformation.UnstructureMessage : string.Empty) + br; //Ustrd
SwissQrCodePayload += additionalInformation.Trailer + br; //Trailer
SwissQrCodePayload += (!string.IsNullOrEmpty(additionalInformation.BillInformation) ? additionalInformation.BillInformation : string.Empty) + br; //StrdBkgInf
// Bug #399 If BillInformation is empty, insert no linebreak
SwissQrCodePayload += (!string.IsNullOrEmpty(additionalInformation.BillInformation) ? additionalInformation.BillInformation + br : string.Empty); //StrdBkgInf

//AltPmtInf "logical" element
if (!string.IsNullOrEmpty(alternativeProcedure1))
Expand Down

0 comments on commit 12a0561

Please sign in to comment.