Skip to content

Commit 06caf69

Browse files
committed
Change "print" to "debugPrint" to avoid release mode logging
1 parent 3e9fbfd commit 06caf69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/html_parser.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ class HtmlParser {
9999

100100
if (renderNewlines) {
101101
assert(() {
102-
print("Before: $data");
102+
debugPrint("Before: $data");
103103
return true;
104104
}());
105105
data = data.replaceAll("\n", "<br />");
106106
assert(() {
107-
print("After: $data");
107+
debugPrint("After: $data");
108108
}());
109109
}
110110
dom.Document document = parser.parse(data);
@@ -123,7 +123,7 @@ class HtmlParser {
123123

124124
if (node is dom.Element) {
125125
assert(() {
126-
print("Found ${node.localName}");
126+
debugPrint("Found ${node.localName}");
127127
return true;
128128
}());
129129

@@ -758,7 +758,7 @@ class HtmlParser {
758758
node.text = " ";
759759
}
760760

761-
print("Plain Text Node: '${trimStringHtml(node.text)}'");
761+
debugPrint("Plain Text Node: '${trimStringHtml(node.text)}'");
762762
String finalText = trimStringHtml(node.text);
763763
//Temp fix for https://github.com/flutter/flutter/issues/736
764764
if (finalText.endsWith(" ")) {

0 commit comments

Comments
 (0)