Sfoglia il codice sorgente

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

pull/24/head
Ben Kurtovic 12 anni fa
parent
commit
cc1a3318df
3 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  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 Vedi File

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

+ 2
- 2
static/css/copyvios.css Vedi File

@@ -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 Vedi File

@@ -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:


Caricamento…
Annulla
Salva