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

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

Issue 10815042: Extensions Docs Server: api_index.html, experimental.html (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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: chrome/common/extensions/docs/server2/intro_data_source.py
diff --git a/chrome/common/extensions/docs/server2/intro_data_source.py b/chrome/common/extensions/docs/server2/intro_data_source.py
index 1f42eec755152b71a995d32bf7f572abda963f82..3f8d5dee73160eb123e49ea8e6149ec5004b1ac7 100644
--- a/chrome/common/extensions/docs/server2/intro_data_source.py
+++ b/chrome/common/extensions/docs/server2/intro_data_source.py
@@ -18,6 +18,7 @@ class IntroDataSource(object):
h1s = re.findall('<h1.*>(.+)</h1>', intro)
if len(h1s) > 0:
page_title = h1s[0]
+ intro = re.sub('<h1.*>(.+)</h1>', '', intro, 1)
cduvall 2012/07/20 21:51:29 Remove the h1 from the file because it is put in l
not at google - send to devlin 2012/07/23 12:40:24 If it's here anyway why remove it? If we do for s
cduvall 2012/07/23 20:38:19 I did this so in the template, the title could go
not at google - send to devlin 2012/07/23 23:37:43 Ah I see. Is it not enough for the TOC to go over
else:
page_title = ''
headings = re.findall('<h([23]) id\="(.+)">(.+)</h[23]>', intro)

Powered by Google App Engine
This is Rietveld 408576698