Commit 0214afa7 by kimth

Merge pull request #443 from MITx/feature/victor/fix-html-rendering

fix another backcompat html bug
parents 8255fa3b 94a8b330
...@@ -39,6 +39,8 @@ class HtmlDescriptor(XmlDescriptor, EditingDescriptor): ...@@ -39,6 +39,8 @@ class HtmlDescriptor(XmlDescriptor, EditingDescriptor):
def backcompat_paths(cls, path): def backcompat_paths(cls, path):
if path.endswith('.html.xml'): if path.endswith('.html.xml'):
path = path[:-9] + '.html' # backcompat--look for html instead of xml path = path[:-9] + '.html' # backcompat--look for html instead of xml
if path.endswith('.html.html'):
path = path[:-5] # some people like to include .html in filenames..
candidates = [] candidates = []
while os.sep in path: while os.sep in path:
candidates.append(path) candidates.append(path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment