浏览代码

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

pull/24/head
Ben Kurtovic 12 年前
父节点
当前提交
cc1a3318df
共有 3 个文件被更改,包括 5 次插入5 次删除
  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 查看文件

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

+ 2
- 2
static/css/copyvios.css 查看文件

@@ -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 查看文件

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


正在加载...
取消
保存