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

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

Issue 10700118: Extensions Docs Server: First doc conversions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added all APIs 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/template_data_source.py
diff --git a/chrome/common/extensions/docs/server2/template_data_source.py b/chrome/common/extensions/docs/server2/template_data_source.py
index 2612d045a6a3ed929a8391fc9e9e59ccaf43d8a5..6c3a873750618f220e36053d2599a34d25b03483 100644
--- a/chrome/common/extensions/docs/server2/template_data_source.py
+++ b/chrome/common/extensions/docs/server2/template_data_source.py
@@ -53,7 +53,8 @@ class TemplateDataSource(object):
index = key.rfind('.html')
if index > 0:
key = key[:index]
- real_path = key + '.html'
+ safe_key = key.replace('.', '_')
+ real_path = safe_key + '.html'
for base_path in self._base_paths:
try:
return self._cache.get(base_path + '/' + real_path)

Powered by Google App Engine
This is Rietveld 408576698