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

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: fixes 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)
not at google - send to devlin 2012/07/23 23:37:43 doesn't look like it's been taken out though..
cduvall 2012/07/23 23:59:54 Oopsies, sorry about that.
else:
page_title = ''
headings = re.findall('<h([23]) id\="(.+)">(.+)</h[23]>', intro)
« no previous file with comments | « chrome/common/extensions/docs/server2/file_system.py ('k') | chrome/common/extensions/docs/server2/template_data_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698