Author: glen Date: Wed Mar 4 23:52:56 2009 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix also for the addedchars
---- Files affected:
SOURCES:
cvsspam-multibyte_enc_disables_highlight-patch1.diff (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/cvsspam-multibyte_enc_disables_highlight-patch1.diff
diff -u SOURCES/cvsspam-multibyte_enc_disables_highlight-patch1.diff:1.1
SOURCES/cvsspam-multibyte_enc_disables_highlight-patch1.diff:1.2
--- SOURCES/cvsspam-multibyte_enc_disables_highlight-patch1.diff:1.1 Thu Mar
27 13:45:03 2008
+++ SOURCES/cvsspam-multibyte_enc_disables_highlight-patch1.diff Thu Mar
5 00:52:50 2009
@@ -1,7 +1,5 @@
-Index: cvsspam.rb
-===================================================================
---- cvsspam.rb (revision 255)
-+++ cvsspam.rb (working copy)
+--- cvsspam.rb (working copy)
++++ cvsspam.rb 2009-03-05 01:48:46.419779119 +0200
@@ -936,7 +936,10 @@
addInfixSize = line.length - (prefixLen+suffixLen)
oversize_change = deleteInfixSize*100/@lineJustDeleted.length>33 ||
addInfixSize*100/line.length>33
@@ -14,6 +12,15 @@
print(htmlEncode(@lineJustDeleted))
else
print(htmlEncode(@lineJustDeleted[0,prefixLen]))
+@@ -1118,7 +1121,7 @@
+ @lineJustDeleted = nil
+ end
+ shift(initial)
+- if prefixLen==1 && suffixLen==0 || addInfixSize<=0 || oversize_change
++ if multibyte_encoding? || prefixLen==1 && suffixLen==0 ||
addInfixSize<=0 || oversize_change
+ encoded = htmlEncode(line)
+ else
+ encoded = htmlEncode(line[0,prefixLen]) +
@@ -1297,6 +1300,11 @@
end
end
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/cvsspam-multibyte_enc_disables_highlight-patch1.diff?r1=1.1&r2=1.2&f=u
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit