Skip to content

Commit 3053731

Browse files
committed
dart format
1 parent 8b70bd2 commit 3053731

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

lib/src/c14n_canonicalization.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ class C14nCanonicalization implements CanonicalizationAlgorithm<String> {
148148

149149
//render namespaces
150150
for (final ns in nsListToRender) {
151-
res.add(' xmlns${ns.prefix.isNotEmpty ? ':${ns.prefix}' : ''}="${ns.namespaceURI}"');
151+
res.add(
152+
' xmlns${ns.prefix.isNotEmpty ? ':${ns.prefix}' : ''}="${ns.namespaceURI}"');
152153
}
153154

154155
return RenderNsResult(res.join(''), newDefaultNs);

lib/src/signed_xml.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ List<XmlNamespace> _collectAncestorNamespaces(XmlNode node,
8787
for (var attr in parent.attributes) {
8888
final name = attr.name.qualified;
8989
if (name.startsWith(regexp)) {
90-
nsArray.add(
91-
XmlNamespace(name.replaceFirst(regexp, ''), attr.value));
90+
nsArray.add(XmlNamespace(name.replaceFirst(regexp, ''), attr.value));
9291
}
9392
}
9493

@@ -699,8 +698,7 @@ class SignedXml {
699698
if (currentPrefix.isNotEmpty) currentPrefix += ':';
700699

701700
if (keyInfoProvider != null) {
702-
final keyInfoAttrs = StringBuffer(),
703-
attrs = keyInfoProvider!.attrs;
701+
final keyInfoAttrs = StringBuffer(), attrs = keyInfoProvider!.attrs;
704702
if (attrs != null) {
705703
for (var entry in attrs.entries) {
706704
keyInfoAttrs.write(' ${entry.key}="${entry.value}"');
@@ -903,12 +901,14 @@ class FileKeyInfo implements KeyInfoProvider {
903901
@override
904902
String getKeyInfo(Uint8List? signingKey, String? prefix) {
905903
var currentPrefix = prefix ?? '';
906-
currentPrefix = currentPrefix.isNotEmpty ? '$currentPrefix:' : currentPrefix;
904+
currentPrefix =
905+
currentPrefix.isNotEmpty ? '$currentPrefix:' : currentPrefix;
907906
final signingCert = StringBuffer();
908907
if (signingKey != null) {
909908
final certArray = [signingKey];
910909
for (var cert in certArray) {
911-
signingCert.write("<${currentPrefix}X509Certificate>${base64Encode(cert)}</${currentPrefix}X509Certificate>");
910+
signingCert.write(
911+
"<${currentPrefix}X509Certificate>${base64Encode(cert)}</${currentPrefix}X509Certificate>");
912912
}
913913
}
914914
return '<${currentPrefix}X509Data>${signingCert.toString()}</${currentPrefix}X509Data>';

0 commit comments

Comments
 (0)