Commits

Nick Stenning committed d2b7674

Minor fix to prevent descriptions mangling front page.

Comments (0)

Files changed (1)

wdmmg/templates/home/index.html

         <div>
           <h3>Investigate</h3>
           <p i18n:msg="getthedata">
-          Do you have spending questions? Ask and help to answer them on 
+          Do you have spending questions? Ask and help to answer them on
           <a href="http://getthedata.org">GetTheData.org</a> and join our
           <a
             href="http://lists.okfn.org/mailman/listinfo/wdmmg-discuss">discussion
           <h3>Contribute</h3>
           <p i18n:msg="wiki">
             Is your country, state or city not on OpenSpending yet? We're
-            looking for spending data from all over the world. Learn about 
-            data imports in <a href="http://wiki.openspending.org/Main_Page">our wiki</a>. 
+            looking for spending data from all over the world. Learn about
+            data imports in <a href="http://wiki.openspending.org/Main_Page">our wiki</a>.
           </p>
         </div>
       </div>
       <ul class="dataset-list">
         <li py:for="dataset in c.datasets">
           <h4><a href="${h.dataset_url(dataset)}">${dataset.label}</a></h4>
-          ${h.truncate(h.markdown(dataset.description), 80, whole_word=True)}
+          ${h.markdown(h.truncate(Markup(dataset.description).striptags(), 80, whole_word=True))}
         </li>
       </ul>
    </div>
     <div class="span-6 last">
       <h3>What is OpenSpending?</h3>
       <p>
-      Our aim is to track every (public) government and corporate financial 
-      transaction across the world and present it in useful and engaging forms 
+      Our aim is to track every (public) government and corporate financial
+      transaction across the world and present it in useful and engaging forms
       for everyone from a school-child to a data geek.
       </p>
       <p>
       We're an open community that anyone is invited to join! We're looking for
-      researchers, coders and citizen activists to join us and to help gather 
+      researchers, coders and citizen activists to join us and to help gather
       and understand financial data.
       </p>
     </div>