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

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

Issue 12090035: Split the comment strings in docs extraction on newlines. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merged master. 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
« tools/dom/docs/lib/docs.dart ('K') | « tools/dom/docs/lib/docs.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index 4ea4220cf28e441f5c10cbda3df377cbe1d8e129..2e50632781552a463dd25ecef24913e46e1dac61 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -832,6 +832,9 @@ def GetComments(interface_name, member_name=None, library_name=None):
elif 'comment' in _dom_json[library_name][interface_name]:
comments = _dom_json[library_name][interface_name]['comment']
+ if (len(comments)):
blois 2013/01/29 16:53:31 unnecessary parens, and I believe you can just do:
+ comments = ['\n'.join(comments)]
+
return comments
def GetAnnotationsAndComments(interface_name, member_name=None,
« tools/dom/docs/lib/docs.dart ('K') | « tools/dom/docs/lib/docs.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698