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

Unified Diff: Source/build/scripts/templates/EventFactory.cpp.tmpl

Issue 236673002: Simplify whitespace handling in build/ Jinja templates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more FIXME Created 6 years, 8 months 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
Index: Source/build/scripts/templates/EventFactory.cpp.tmpl
diff --git a/Source/build/scripts/templates/EventFactory.cpp.tmpl b/Source/build/scripts/templates/EventFactory.cpp.tmpl
index 1b9bd3394d0f7f09cce9826dbb6424ad7e4160a0..d250fc11443ce3026e3c8313995fb1cd90c2a04e 100644
--- a/Source/build/scripts/templates/EventFactory.cpp.tmpl
+++ b/Source/build/scripts/templates/EventFactory.cpp.tmpl
@@ -1,4 +1,4 @@
-{% from "macros.tmpl" import wrap_with_condition, license -%}
+{% from "macros.tmpl" import wrap_with_condition, license %}
{{ license() }}
#include "config.h"
@@ -11,12 +11,12 @@ namespace WebCore {
PassRefPtrWillBeRawPtr<{{namespace}}> {{namespace}}Factory::create(const String& type)
{
-{%- for event in events %}
-{%- call wrap_with_condition(event.Conditional) %}
+ {% for event in events %}
+ {% call wrap_with_condition(event.Conditional) %}
if (type == "{{event|script_name}}"{% if event.RuntimeEnabled %} && RuntimeEnabledFeatures::{{event.RuntimeEnabled|lower_first}}(){% endif %})
return {{event|cpp_name}}::create();
-{%- endcall %}
-{%- endfor %}
+ {% endcall %}
+ {% endfor %}
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698