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

Unified Diff: Source/build/scripts/templates/MakeNames.h.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/MakeNames.h.tmpl
diff --git a/Source/build/scripts/templates/MakeNames.h.tmpl b/Source/build/scripts/templates/MakeNames.h.tmpl
index 6d523e9ee10c19dba186b32fb7a4fd769a7299bb..249c3aa7122d006be5ce917729d632a7a37cac28 100644
--- a/Source/build/scripts/templates/MakeNames.h.tmpl
+++ b/Source/build/scripts/templates/MakeNames.h.tmpl
@@ -1,26 +1,26 @@
-{% from "macros.tmpl" import license -%}
+{% from "macros.tmpl" import license %}
{{ license() }}
#ifndef {{namespace}}Names_h
#define {{namespace}}Names_h
-
-{%- if export %}
+{# FIXME: add blank line #}
+{% if export %}
#include "platform/PlatformExport.h"
-{%- endif %}
+{% endif %}
#include "wtf/text/AtomicString.h"
namespace WebCore {
namespace {{namespace}}Names {
#ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
-
-{%- for entry in entries|sort %}
-{%- if export %}
+{# FIXME: add blank line #}
+{% for entry in entries|sort %}
+{% if export %}
{{export}} extern const WTF::AtomicString& {{entry|symbol}};
-{%- else %}
+{% else %}
extern const WTF::AtomicString {{entry|symbol}};
-{%- endif %}
-{%- endfor %}
+{% endif %}
+{% endfor %}
#endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
« no previous file with comments | « Source/build/scripts/templates/MakeNames.cpp.tmpl ('k') | Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698