Browse Source

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

pull/24/head
Ben Kurtovic 11 years ago
parent
commit
cc1a3318df
3 changed files with 5 additions and 5 deletions
  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 View File

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

+ 2
- 2
static/css/copyvios.css View 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 View 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:


Loading…
Cancel
Save