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

Unified Diff: Source/build/scripts/templates/MakeQualifiedNames.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/MakeQualifiedNames.h.tmpl
diff --git a/Source/build/scripts/templates/MakeQualifiedNames.h.tmpl b/Source/build/scripts/templates/MakeQualifiedNames.h.tmpl
index 8f8dc3b5ba7cea7767c3e337df9ab04f3fa6ca84..cdaf08128e818bb3fb67ea74982e25e77a97862b 100644
--- a/Source/build/scripts/templates/MakeQualifiedNames.h.tmpl
+++ b/Source/build/scripts/templates/MakeQualifiedNames.h.tmpl
@@ -1,4 +1,4 @@
-{% from "macros.tmpl" import license -%}
+{% from "macros.tmpl" import license %}
{{ license() }}
#ifndef {{namespace}}Names_h
@@ -15,21 +15,20 @@ namespace {{namespace}}Names {
extern const WTF::AtomicString {{namespace_prefix}}NamespaceURI;
// Tags
-{%- for tag in tags|sort %}
+{% for tag in tags|sort %}
extern const WebCore::QualifiedName {{tag|symbol}}Tag;
-{%- endfor %}
+{% endfor %}
// Attributes
-{%- for attr in attrs|sort %}
+{% for attr in attrs|sort %}
extern const WebCore::QualifiedName {{attr|symbol}}Attr;
-{%- endfor %}
+{% endfor %}
#endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
-
-{%- if tags %}
+{% if tags %}
const unsigned {{namespace}}TagsCount = {{tags|count}};
PassOwnPtr<const QualifiedName*[]> get{{namespace}}Tags();
-{%- endif %}
+{% endif %}
const unsigned {{namespace}}AttrsCount = {{attrs|count}};
PassOwnPtr<const QualifiedName*[]> get{{namespace}}Attrs();
« no previous file with comments | « Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl ('k') | Source/build/scripts/templates/MediaFeatures.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698