Skip to content

Commit d8fc615

Browse files
committed
Respond to feedback
1 parent 7cab09c commit d8fc615

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

pkgs/html/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 0.15.6
2+
3+
- Performance improvements.
4+
- No longer generate any error spans if generateSpans is false.
5+
16
## 0.15.5+1
27

38
- Support "ambiguous ampersand" in attribute values.

pkgs/html/lib/src/trie.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// AUTO GENERATED by 'tool/generate_trie.dart'. DO NOT EDIT!
12
const entitiesTrieRoot = {
23
65: {
34
69: {

pkgs/html/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: html
2-
version: 0.15.5+1
2+
version: 0.15.6
33
description: APIs for parsing and manipulating HTML content outside the browser.
44
repository: https://github.com/dart-lang/tools/tree/main/pkgs/html
55
issue_tracker: https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ahtml

pkgs/html/example/generate_trie.dart renamed to pkgs/html/tool/generate_trie.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'dart:io';
2+
13
import 'package:dart_style/dart_style.dart';
24
import 'package:html/src/constants.dart';
35

@@ -11,8 +13,9 @@ void main() {
1113
}
1214
}
1315
final source =
16+
'''// AUTO GENERATED by 'tool/generate_trie.dart'. DO NOT EDIT!\n'''
1417
'const entitiesTrieRoot = $root;'.replaceAll('{}', '<int, dynamic>{}');
1518
final formatted = DartFormatter().format(source);
16-
// trimRight() because print adds its own newline
17-
print(formatted.trimRight());
19+
final htmlDir = File(Platform.script.path).parent.parent;
20+
File('${htmlDir.path}/lib/src/trie.dart').writeAsStringSync(formatted);
1821
}

0 commit comments

Comments
 (0)