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

Unified Diff: chrome/common/extensions/docs/server2/table_of_contents_renderer.py

Issue 99703004: Docserver: Fix the TOC rendering for API references by fixing the haphazard way (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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: chrome/common/extensions/docs/server2/table_of_contents_renderer.py
diff --git a/chrome/common/extensions/docs/server2/table_of_contents_renderer.py b/chrome/common/extensions/docs/server2/table_of_contents_renderer.py
index 1d6f3bb5c10963e73ebae9c803b76b8d305cd724..a68bcc33d5c83acca367634c29c4e51783ec980a 100644
--- a/chrome/common/extensions/docs/server2/table_of_contents_renderer.py
+++ b/chrome/common/extensions/docs/server2/table_of_contents_renderer.py
@@ -33,7 +33,8 @@ class TableOfContentsRenderer(object):
def make_toc_items(entries):
return [{
- 'attributes': [(key, val) for key, val in entry.attributes.iteritems()
+ 'attributes': [{'key': key, 'value': val}
+ for key, val in entry.attributes.iteritems()
if key != 'id'],
'link': entry.attributes.get('id', ''),
'subheadings': make_toc_items(entry.entries),
« no previous file with comments | « chrome/common/extensions/docs/server2/known_broken_links.json ('k') | chrome/common/extensions/docs/static/css/site.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698