|
@@ -301,7 +301,7 @@ class page_django(page_data):
|
301
|
301
|
[page_django(self._request, path) for path in full_path_all_pages(expression)]
|
302
|
302
|
)
|
303
|
303
|
if tree:
|
304
|
|
- return page_tree(pl).html()
|
|
304
|
+ return "<pre>\n" + page_tree(pl).html() + "</pre>\n"
|
305
|
305
|
else:
|
306
|
306
|
return pl.html_list(depth=depth, filter_str=filter_str, parent_rel_path=parent_rel_path)
|
307
|
307
|
|
|
@@ -349,8 +349,8 @@ class page_list(list):
|
349
|
349
|
class page_tree(dict):
|
350
|
350
|
T_PATTERN = "├── "
|
351
|
351
|
L_PATTERN = "└── "
|
352
|
|
- I_PATTERN = "│ "
|
353
|
|
- D_PATTERN = " "
|
|
352
|
+ I_PATTERN = "│ "
|
|
353
|
+ D_PATTERN = " "
|
354
|
354
|
|
355
|
355
|
def __init__(self, pl: page_list):
|
356
|
356
|
super().__init__()
|
|
@@ -378,7 +378,7 @@ class page_tree(dict):
|
378
|
378
|
page = page_wrapped(None, page_path)
|
379
|
379
|
if page.is_available():
|
380
|
380
|
entry = f'<a href="{url_page(page_path)}">{entry}</a>'
|
381
|
|
- rv += fill + (self.L_PATTERN if l == 0 else self.T_PATTERN) + entry + "<br>\n"
|
|
381
|
+ rv += fill + (self.L_PATTERN if l == 0 else self.T_PATTERN) + entry + "\n"
|
382
|
382
|
rv += self.html(page_path, fill=fill+(self.D_PATTERN if l == 0 else self.I_PATTERN))
|
383
|
383
|
return rv
|
384
|
384
|
|