diff --git a/helios/models.py b/helios/models.py index 17e757bbaca4024e92049b25769255789d5b5217..8f92737e4fc436d209c5837547c58797a114faa0 100644 --- a/helios/models.py +++ b/helios/models.py @@ -192,7 +192,7 @@ class Election(HeliosModel): @property def description_bleached(self): - return bleach.clean(self.description, tags = bleach.ALLOWED_TAGS + ['p']) + return bleach.clean(self.description, tags = bleach.ALLOWED_TAGS + ['p', 'h4', 'h5', 'h3', 'h2', 'br']) @classmethod def get_featured(cls): diff --git a/helios/templates/election_view.html b/helios/templates/election_view.html index 92c6b2e6a9d3492373fac2e19de51e9495ca1464..f1eb9e79e737e02b74dc5a10ce50f8cf8950b41b 100644 --- a/helios/templates/election_view.html +++ b/helios/templates/election_view.html @@ -45,7 +45,7 @@ this {{election.election_type}} is <u>not</u> featured on the front page. <br clear="left" /> -<div style="margin-bottom: 25px;margin-left: 15px; border-left: 1px solid #aaa; padding-left: 5px; font-size:1.3em; "> +<div style="margin-bottom: 25px; "> {{election.description_bleached|safe}} </div> diff --git a/server_ui/media/foundation-tweaks.css b/server_ui/media/foundation-tweaks.css index e693c7e865d9d04cd70adef4ed19638b968824ec..cc60e28d76fe05e2ea7b2dfd0e2a138d0212265b 100644 --- a/server_ui/media/foundation-tweaks.css +++ b/server_ui/media/foundation-tweaks.css @@ -62,4 +62,8 @@ height: 2.5em; select { width: auto; +} + +ul { + margin-left: 20px; } \ No newline at end of file