Author: glen                         Date: Sat Feb 11 12:26:51 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- backslash fix

---- Files affected:
packages/php-mpdf:
   php-mpdf.spec (1.1 -> 1.2) , backslash-fix.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/php-mpdf/php-mpdf.spec
diff -u packages/php-mpdf/php-mpdf.spec:1.1 packages/php-mpdf/php-mpdf.spec:1.2
--- packages/php-mpdf/php-mpdf.spec:1.1 Sat Feb 11 13:20:50 2012
+++ packages/php-mpdf/php-mpdf.spec     Sat Feb 11 13:26:46 2012
@@ -15,6 +15,7 @@
 Group:         Development/Languages/PHP
 Source0:       http://mpdf1.com/repos/download.php?file=MPDF53#/MPDF53.zip
 # Source0-md5: db4ab1585e97b597ec35e48ee2914e29
+Patch0:        backslash-fix.patch
 URL:           http://www.mpdf1.com/mpdf/
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
 BuildRequires: rpmbuild(macros) >= 1.461
@@ -56,8 +57,8 @@
 
 %prep
 %setup -q -n MPDF53
-
 %undos -f php,txt
+%patch0 -p1
 
 %{__rm} tmp/dummy.txt
 %{__rm} ttfontdata/dummy.txt
@@ -107,5 +108,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2012/02/11 12:26:46  glen
+- backslash fix
+
 Revision 1.1  2012/02/11 12:20:50  glen
 - new

================================================================
Index: packages/php-mpdf/backslash-fix.patch
diff -u /dev/null packages/php-mpdf/backslash-fix.patch:1.1
--- /dev/null   Sat Feb 11 13:26:51 2012
+++ packages/php-mpdf/backslash-fix.patch       Sat Feb 11 13:26:46 2012
@@ -0,0 +1,16 @@
+backslash fix
+
+https://github.com/splitbrain/dokuwiki-plugin-dw2pdf/commit/ef508745a56a1923e4b1a52f50ab7f4e8d4020f9#mpdf/mpdf.php
+http://www.mpdf1.com/mpdf/forum/comments.php?DiscussionID=783
+https://gist.github.com/1594144
+
+--- MPDF53/mpdf.php    2012-02-11 13:11:47.046223430 +0200
++++ mpdf/mpdf.php      2012-01-30 16:26:00.000000000 +0200
+@@ -32148,6 +32148,7 @@
+                       $temp[2][$iterator] = preg_replace('/\t/',str_repeat(" 
",$tabSpaces),$temp[2][$iterator]);
+ 
+                       $temp[2][$iterator] = preg_replace('/\n/',"<br 
/>",$temp[2][$iterator]);
++                      $temp[2][$iterator] = 
str_replace('\\',"\\\\",$temp[2][$iterator]);
+                       $html = 
preg_replace('#<pre(.*?)>(.*?)</pre>#si','<erp'.$temp[1][$iterator].'>'.$temp[2][$iterator].'</erp>',$html,1);
+                       $thereispre--;
+                       $iterator++;
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-mpdf/php-mpdf.spec?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

Reply via email to