diff --git a/lib/src/c14n_canonicalization.dart b/lib/src/c14n_canonicalization.dart index 1e98b0e..3cc3774 100644 --- a/lib/src/c14n_canonicalization.dart +++ b/lib/src/c14n_canonicalization.dart @@ -148,7 +148,8 @@ class C14nCanonicalization implements CanonicalizationAlgorithm { //render namespaces for (final ns in nsListToRender) { - res.add(' xmlns${ns.prefix.isNotEmpty ? ':${ns.prefix}' : ''}="${ns.namespaceURI}"'); + res.add( + ' xmlns${ns.prefix.isNotEmpty ? ':${ns.prefix}' : ''}="${ns.namespaceURI}"'); } return RenderNsResult(res.join(''), newDefaultNs); diff --git a/lib/src/signed_xml.dart b/lib/src/signed_xml.dart index 1e49eee..8d13fc9 100644 --- a/lib/src/signed_xml.dart +++ b/lib/src/signed_xml.dart @@ -87,8 +87,7 @@ List _collectAncestorNamespaces(XmlNode node, for (var attr in parent.attributes) { final name = attr.name.qualified; if (name.startsWith(regexp)) { - nsArray.add( - XmlNamespace(name.replaceFirst(regexp, ''), attr.value)); + nsArray.add(XmlNamespace(name.replaceFirst(regexp, ''), attr.value)); } } @@ -699,8 +698,7 @@ class SignedXml { if (currentPrefix.isNotEmpty) currentPrefix += ':'; if (keyInfoProvider != null) { - final keyInfoAttrs = StringBuffer(), - attrs = keyInfoProvider!.attrs; + final keyInfoAttrs = StringBuffer(), attrs = keyInfoProvider!.attrs; if (attrs != null) { for (var entry in attrs.entries) { keyInfoAttrs.write(' ${entry.key}="${entry.value}"'); @@ -903,12 +901,14 @@ class FileKeyInfo implements KeyInfoProvider { @override String getKeyInfo(Uint8List? signingKey, String? prefix) { var currentPrefix = prefix ?? ''; - currentPrefix = currentPrefix.isNotEmpty ? '$currentPrefix:' : currentPrefix; + currentPrefix = + currentPrefix.isNotEmpty ? '$currentPrefix:' : currentPrefix; final signingCert = StringBuffer(); if (signingKey != null) { final certArray = [signingKey]; for (var cert in certArray) { - signingCert.write("<${currentPrefix}X509Certificate>${base64Encode(cert)}"); + signingCert.write( + "<${currentPrefix}X509Certificate>${base64Encode(cert)}"); } } return '<${currentPrefix}X509Data>${signingCert.toString()}';