Bladeren bron

Fix an XHTML error.

pull/24/head
Ben Kurtovic 12 jaren geleden
bovenliggende
commit
9889775982
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. +2
    -2
      pages/copyvios.mako
  2. +1
    -1
      toolserver/copyvios/highlighter.py

+ 2
- 2
pages/copyvios.mako Bestand weergeven

@@ -127,8 +127,8 @@
</ul>
<table id="cv-chain-table">
<tr>
<td>Article: <div class="cv-chain-detail">${highlight_delta(result.article_chain, result.delta_chain)}</div></td>
<td>Source: <div class="cv-chain-detail">${highlight_delta(result.source_chain, result.delta_chain)}</div></td>
<td>Article: <div class="cv-chain-detail"><p>${highlight_delta(result.article_chain, result.delta_chain)}</p></div></td>
<td>Source: <div class="cv-chain-detail"><p>${highlight_delta(result.source_chain, result.delta_chain)}</p></div></td>
</tr>
</table>
</div>


+ 1
- 1
toolserver/copyvios/highlighter.py Bestand weergeven

@@ -37,7 +37,7 @@ def highlight_delta(context, chain, delta):
processed.append(u" ".join(words))
i += 1

return u"<p>" + u"</p>\n<p>".join(processed) + u"</p>"
return u"<br /><br />".join(processed)

def _get_next(paragraphs):
paragraph = paragraphs.pop(0)


Laden…
Annuleren
Opslaan