Commit 6568eeef authored by Julien Muchembled's avatar Julien Muchembled

Use non-breakable spaces to indent categories in getIndentedTitle.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25677 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4e6bb6e7
......@@ -45,6 +45,8 @@ DEFAULT_CACHE_FACTORY = 'erp5_ui_long'
from zLOG import LOG
NBSP_UTF8 = u'\xA0'.encode('utf-8')
manage_addCategoryForm=DTMLFile('dtml/category_add', globals())
def addCategory( self, id, title='', REQUEST=None ):
......@@ -216,8 +218,8 @@ class Category(Folder):
logical_title_list = []
if path_len >= 2:
logical_title_list.append(' ' * 4 * (path_len - 1))
logical_title_list.append(NBSP_UTF8 * 4 * (path_len - 1))
logical_title = getattr(self, item_method)()
if logical_title in [None, '']:
logical_title = self.getId()
......
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