Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3376)

Unified Diff: samples/markdown/html_renderer.dart

Issue 11312203: "Reverting 14829-14832" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/markdown/block_parser.dart ('k') | samples/swarm/swarm_ui_lib/base/Device.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/markdown/html_renderer.dart
diff --git a/samples/markdown/html_renderer.dart b/samples/markdown/html_renderer.dart
index 011794deb8cd93b06f971c9e7841ca29a80847ed..943613d9727c3487d0dd82aba7535d8a96a0119a 100644
--- a/samples/markdown/html_renderer.dart
+++ b/samples/markdown/html_renderer.dart
@@ -6,7 +6,7 @@ String renderToHtml(List<Node> nodes) => new HtmlRenderer().render(nodes);
/// Translates a parsed AST to HTML.
class HtmlRenderer implements NodeVisitor {
- static final _BLOCK_TAGS = new RegExp(
+ static const _BLOCK_TAGS = const RegExp(
'blockquote|h1|h2|h3|h4|h5|h6|hr|p|pre');
StringBuffer buffer;
« no previous file with comments | « samples/markdown/block_parser.dart ('k') | samples/swarm/swarm_ui_lib/base/Device.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698