Replace <pre> with <div>
This commit is contained in:
parent
6ac35a8ccb
commit
09f2427b03
1 changed files with 2 additions and 2 deletions
|
|
@ -166,9 +166,9 @@ def distribusify(args, directory, freg): # noqa
|
||||||
elif subtype in CODE_TYPES or name.endswith('.txt'):
|
elif subtype in CODE_TYPES or name.endswith('.txt'):
|
||||||
# if the plain text is code,
|
# if the plain text is code,
|
||||||
# which types do we wrap in pre-tags?
|
# which types do we wrap in pre-tags?
|
||||||
a = "<pre>" + open(full_path).read() + "</pre>"
|
a = "<div>" + open(full_path).read() + "</div>"
|
||||||
elif subtype == 'markdown' or name.endswith('.md'):
|
elif subtype == 'markdown' or name.endswith('.md'):
|
||||||
a = "<pre>" + markdown.markdown(open(full_path).read()) + "</pre>"
|
a = "<div>" + markdown.markdown(open(full_path).read()) + "</div>"
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
subtype = subtype+' unkown-file'
|
subtype = subtype+' unkown-file'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue