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

Unified Diff: tools/dom/scripts/generator.py

Issue 12094003: Readded some more HTML docs! (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: This should be good. Created 7 years, 11 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: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index 516e768572a66e9cff8c4f33f78020ab08761b42..4c7115c14831c532f6c8ebb113c29427b52de5b9 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -842,8 +842,10 @@ def GetComments(interface_name, member_name=None, library_name=None):
def GetAnnotationsAndComments(interface_name, member_name=None,
library_name=None):
annotations = GetComments(interface_name, member_name, library_name)
- annotations.extend(FindCommonAnnotations(interface_name, member_name,
- library_name))
+ annotations = annotations + (FindCommonAnnotations(interface_name,
+ member_name,
+ library_name))
+
return annotations
def FindCommonAnnotations(interface_name, member_name=None, library_name=None):
@@ -891,6 +893,7 @@ def AnyConversionAnnotations(idl_type, interface_name, member_name):
def FormatAnnotationsAndComments(annotations, indentation):
if annotations:
+
newline = '\n%s' % indentation
result = newline.join(annotations) + newline
return result

Powered by Google App Engine
This is Rietveld 408576698