Kaynağa Gözat

Paragraphs instead of one big thing with line breaks.

pull/24/head
Ben Kurtovic 12 yıl önce
ebeveyn
işleme
4c43629020
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. +2
    -2
      pages/copyvios.mako
  2. +1
    -1
      toolserver/copyvios/highlighter.py

+ 2
- 2
pages/copyvios.mako Dosyayı Görüntüle

@@ -122,8 +122,8 @@
</ul>
<table id="cv-chain-table">
<tr>
<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>
<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>
</tr>
</table>
</div>


+ 1
- 1
toolserver/copyvios/highlighter.py Dosyayı Görüntüle

@@ -40,7 +40,7 @@ def highlight_delta(context, chain, delta):
prev = sword
processed.append(u" ".join(processed_words))
i += 1
return u"<br /><br />".join(processed)
return u"<p>" + u"</p>\n<p>".join(processed) + u"</p>"

def _highlight_word(word, before, after, is_first, is_last):
if before and after:


Yükleniyor…
İptal
Kaydet