From e10a40bb98a9a2df3a406cd870bf7d5a497b4a86 Mon Sep 17 00:00:00 2001 From: rra Date: Sat, 10 Feb 2018 19:23:29 +0100 Subject: [PATCH] output html was broken --- distribusi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/distribusi.py b/distribusi.py index 9318531..7b3f6e8 100755 --- a/distribusi.py +++ b/distribusi.py @@ -20,7 +20,7 @@ else: mime_type = magic.Magic(mime=True) -file_types = {'image':'', 'pdf':'', +file_types = {'image':'', 'pdf':'', 'text':'{}', 'video':'', 'audio':''} code_types = ['x-c', 'html'] @@ -33,10 +33,10 @@ def div(mime, tag, *values): #name, full_path class_name = values[0].split('.')[0].replace(' ', '_') if 'image' in mime: - html ='
'.format(class_name)+tag+'
{}
'.format(values[0]) + html ='
'.format(class_name)+tag+'
{}
'.format(values[0]) elif 'pdf' in format: - html ='
'.format(class_name)+tag+'
{}
'.format(values[0]) + html ='
'.format(class_name)+tag+'
{}
'.format(values[0]) else: html = '
'.format(class_name)+tag+'
'.format(values[0]) return html