diff --git a/distribusi/distribusi.py b/distribusi/distribusi.py index 8b67730..4291f84 100644 --- a/distribusi/distribusi.py +++ b/distribusi/distribusi.py @@ -164,9 +164,9 @@ def render_dir(args, root): tstring = m.group('tstring') rename = m.group('name') if rename == "": - a = "
" + a = "
" else: - a = "
{}
".replace('{}', rename) + a = "
{}
".replace('{}', rename) a = a + open(full_path).read() + "
" a = a.replace('{}', tstring) else: @@ -283,9 +283,9 @@ def distribusify(args, directory): # noqa tstring = m.group('tstring') rename = m.group('name') if rename == "": - a = "
" + a = "
" else: - a = "
{}
".replace('{}', rename) + a = "
{}
".replace('{}', rename) a = a + open(full_path).read() + "
" a = a.replace('{}', tstring) else: diff --git a/styles/aurora.css b/styles/aurora.css index dff0485..a84039b 100644 --- a/styles/aurora.css +++ b/styles/aurora.css @@ -58,7 +58,7 @@ div { } .plain div { - white-space: pre-line; + white-space: pre-wrap; overflow-wrap: anywhere; } diff --git a/styles/dark.css b/styles/dark.css index d8500d4..3581b8e 100644 --- a/styles/dark.css +++ b/styles/dark.css @@ -58,14 +58,14 @@ div { } .plain div { - white-space: pre-line; + white-space: pre-wrap; overflow-wrap: anywhere; } /* .x-c div, .x-shellscript div, .x-python div { - white-space: pre-line; + white-space: pre-wrap; } */ figure { diff --git a/styles/white.css b/styles/white.css index ed01307..60ed1c5 100644 --- a/styles/white.css +++ b/styles/white.css @@ -58,7 +58,7 @@ div { } .plain div { - white-space: pre-line; + white-space: pre-wrap; overflow-wrap: anywhere; } diff --git a/styles/yoshi.css b/styles/yoshi.css index 40fb376..9875e04 100644 --- a/styles/yoshi.css +++ b/styles/yoshi.css @@ -58,7 +58,7 @@ div { } .plain div { - white-space: pre-line; + white-space: pre-wrap; overflow-wrap: anywhere; }