From 9714601c44480f7685319edd13cfbc3ef3284afc Mon Sep 17 00:00:00 2001 From: Hyunchul Kim Date: Wed, 2 Dec 2020 05:52:22 +0900 Subject: [PATCH] Seperate anchor tag and add `` tag --- distribusi/distribusi/distribusi.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/distribusi/distribusi/distribusi.py b/distribusi/distribusi/distribusi.py index 204216e..90e3286 100644 --- a/distribusi/distribusi/distribusi.py +++ b/distribusi/distribusi/distribusi.py @@ -67,14 +67,14 @@ def div(args, type_, subtype, tag, name, id): filename = '{}'.format(name) if 'image' in type_: - html = '
{}
' + html = '
{}#{}
' elif 'pdf' in subtype: - html = '
{}' + filename + '
' + html = '
{}' + filename + '#{}
' elif 'dir' in type_ or 'html' in subtype or 'unkown-file' in subtype: - html = '
{}
' + html = '
{}{}
' else: - html = '
{}' + filename + '
' - return html.format(id, subtype, tag) + html = '
{}' + filename + '#{}
' + return html.format(subtype, id, tag, id) def check_distribusi_index(args, index):