Przeglądaj źródła

Try <= 3 instead of == 1 for joined adjacent lines; tweaks.

pull/24/head
Ben Kurtovic 12 lat temu
rodzic
commit
cc1a3318df
3 zmienionych plików z 5 dodań i 5 usunięć
  1. +1
    -1
      pages/support/header.mako
  2. +2
    -2
      static/css/copyvios.css
  3. +2
    -2
      toolserver/copyvios/highlighter.py

+ 1
- 1
pages/support/header.mako Wyświetl plik

@@ -50,4 +50,4 @@
% endfor
</p>
</div>
<div id="container">
<div id="container">

+ 2
- 2
static/css/copyvios.css Wyświetl plik

@@ -1,12 +1,12 @@
div#cv-result-yes {
padding: 0 10px 0 10px;
padding: 5px 10px 0 10px;
margin: 0 5px 10px 5px;
background-color: #FEE;
border: 1px solid #F77;
}

div#cv-result-no {
padding: 0 10px 0 10px;
padding: 5px 10px 0 10px;
margin: 0 5px 10px 5px;
background-color: #EFE;
border: 1px solid #7F7;


+ 2
- 2
toolserver/copyvios/highlighter.py Wyświetl plik

@@ -42,10 +42,10 @@ def highlight_delta(context, chain, delta):
def _get_next(paragraphs):
paragraph = paragraphs.pop(0)
body = paragraph.split()
if len(body) == 1:
if len(body) <= 3:
while paragraphs:
next = paragraphs[0].split()
if len(next) == 1:
if len(next) <= 3:
body += next
paragraphs.pop(0)
else:


Ładowanie…
Anuluj
Zapisz