From 14eeeeedc04203637b6d6e7290f31b6435d34542 Mon Sep 17 00:00:00 2001 From: lethosor Date: Sun, 15 Nov 2020 17:39:31 -0500 Subject: [PATCH] Remove extra paragraph from generated changelogs, restore paragraph margins The CSS (changed in bca76b8f) was removing space between actual paragraphs in lists. This was intended to address excess padding in changelogs, but that is resolved here by removing blank lines surrounding nested lists. This still displays properly on GitHub/Reddit and presumably other Markdown implementations as well. --- docs/sphinx_extensions/dfhack/changelog.py | 2 -- docs/styles/dfhack.css | 5 ----- 2 files changed, 7 deletions(-) diff --git a/docs/sphinx_extensions/dfhack/changelog.py b/docs/sphinx_extensions/dfhack/changelog.py index d38f8c060..37fe289cb 100644 --- a/docs/sphinx_extensions/dfhack/changelog.py +++ b/docs/sphinx_extensions/dfhack/changelog.py @@ -201,10 +201,8 @@ def print_changelog(versions, all_entries, path, replace=True, prefix=''): continue elif entry.children: write('- ' + entry.feature + ':') - write('') for child in entry.children: write(' - ' + child) - write('') else: write('- ' + entry.feature) write('') diff --git a/docs/styles/dfhack.css b/docs/styles/dfhack.css index 7b735ed42..9b6e523ef 100644 --- a/docs/styles/dfhack.css +++ b/docs/styles/dfhack.css @@ -57,11 +57,6 @@ div.body { min-width: unset; } -div.body li > p { - margin-top: 0; - margin-bottom: 0; -} - span.pre { overflow-wrap: break-word; }