Commit 18892869 authored by Christophe Dumez's avatar Christophe Dumez

- improved xhtml compliance


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8185 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c1a48600
......@@ -611,11 +611,11 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
file_path = self.relativeToAbsolute(file_path, business_template)
if os.path.exists(file_path):
if os.path.isdir(file_path):
text = "<span style='font-weight: bold'>"+file_path+"</span><hr/>"
text = "<span style='font-weight: bold; color: black;'>"+file_path+"</span><hr/>"
text += file_path +" is a folder!"
else:
input_file = open(file_path, 'r')
head = "<span style='font-weight: bold'>"+file_path+'</span> <a href="' + \
head = "<span style='font-weight: bold; color: black;'>"+file_path+'</span> <a href="' + \
self.editPath(business_template, file_path) + \
'"><img src="imgs/edit.png" style="border: 0" alt="edit" /></a><hr/>'
text = head + colorize(input_file.read())
......
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