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; |
} |