<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=Text_Diff&amp;PHPSESSID=6sh8hov6085gl1gd4s43b0k8h0</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/16774" />
      <rdf:li rdf:resource="http://pear.php.net/bug/6359" />
      <rdf:li rdf:resource="http://pear.php.net/bug/4982" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/16774">
      <title>Text_Diff: Feature/Change Request 16774 [Open] Word boundaries are insufficient for inline differ</title>
      <link>http://pear.php.net/bugs/16774</link>
      <content:encoded><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by arencambre
2009-11-10T05:04:15+00:00
PHP: 5.2.5 OS: Debian Package Version: 1.1.1

Description:
------------
The online diff utility has a terribly insufficient word boundary definition. Currently it only defines space and \n as word boundaries. This means any punctuation will be part of a word boundary.

This can cause serious usability problems.

I recommend altering lines 158 and 159 of PEAR/Text/Diff/Renderer/inline.php and dramatically expanding the characters that define word boundaries to include all common punctuation.

Test script:
---------------
Diff these lines:
The quick cat jumped over the lazy fox, who was totally lazy and should be shot.
The quick cat jumped over the lazy fox.

Expected result:
----------------
The quick cat jumped over the lazy fox&lt;del&gt;, who was totally lazy and should be shot.&lt;/del&gt;.

This is a much more accurate and legible deletion since the result does not reconstruct the sentence structure.

Actual result:
--------------
The quick cat jumped over the lazy &lt;del&gt;fox, who was totally lazy and should be shot.&lt;/del&gt;&lt;ins&gt;fox.&lt;/ins&gt;

This renders terribly because the first half of the sentence is split by the part that was deleted.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by arencambre
2009-11-10T05:04:15+00:00
PHP: 5.2.5 OS: Debian Package Version: 1.1.1

Description:
------------
The online diff utility has a terribly insufficient word boundary definition. Currently it only defines space and \n as word boundaries. This means any punctuation will be part of a word boundary.

This can cause serious usability problems.

I recommend altering lines 158 and 159 of PEAR/Text/Diff/Renderer/inline.php and dramatically expanding the characters that define word boundaries to include all common punctuation.

Test script:
---------------
Diff these lines:
The quick cat jumped over the lazy fox, who was totally lazy and should be shot.
The quick cat jumped over the lazy fox.

Expected result:
----------------
The quick cat jumped over the lazy fox&lt;del&gt;, who was totally lazy and should be shot.&lt;/del&gt;.

This is a much more accurate and legible deletion since the result does not reconstruct the sentence structure.

Actual result:
--------------
The quick cat jumped over the lazy &lt;del&gt;fox, who was totally lazy and should be shot.&lt;/del&gt;&lt;ins&gt;fox.&lt;/ins&gt;

This renders terribly because the first half of the sentence is split by the part that was deleted.</pre>]]></description>
      <dc:date>2009-11-10T11:19:27+00:00</dc:date>
      <dc:creator>aren &amp;#x61;&amp;#116; arencambre &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Text_Diff Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/6359">
      <title>Text_Diff: Feature/Change Request 6359 [Open] Ignore whitespace</title>
      <link>http://pear.php.net/bugs/6359</link>
      <content:encoded><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by nlopess
2005-12-28T13:39:55+00:00
PHP: Irrelevant OS: n/a Package Version: 

Description:
------------
It would be good to have a &quot;ignore all white space&quot; option, just like the diff command.
a simple triming of the input would do the trick (but copy it, so that the generated diff appear with the trimed spaces).</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by nlopess
2005-12-28T13:39:55+00:00
PHP: Irrelevant OS: n/a Package Version: 

Description:
------------
It would be good to have a &quot;ignore all white space&quot; option, just like the diff command.
a simple triming of the input would do the trick (but copy it, so that the generated diff appear with the trimed spaces).</pre>]]></description>
      <dc:date>2005-12-29T08:03:20+00:00</dc:date>
      <dc:creator>nlopess &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>Text_Diff Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/4982">
      <title>Text_Diff: Feature/Change Request 4982 [Open] diff on a little bit wrong place with inline renderer</title>
      <link>http://pear.php.net/bugs/4982</link>
      <content:encoded><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by thomas@...
2005-08-03T05:35:40+00:00
PHP: 5.0.4 OS: windows 2000 Package Version: 

Description:
------------
The following script shows the new line not at the exact position.
The two files are :
/* 1.txt :
This line is the same.
This line is different in 1.txt
This line is the same.
This is gone away !!
*/
/* 2.txt
This line is the same.
This is new !!
This line is different in 2.txt
This line is the same.
*/

Test script:
---------------
&lt;?php
include_once 'Text/Diff.php';
include_once 'Text/Diff/Renderer.php';
include_once 'Text/Diff/Renderer/inline.php';
$lines1 = file('1.txt');
$lines2 = file('2.txt');
$diff = &amp;new Text_Diff($lines1, $lines2);
$renderer = &amp;new Text_Diff_Renderer_inline();
$regexold = &quot;(&lt;del&gt;.*&lt;/del&gt;)&quot;;
$regexnew = &quot;(&lt;ins&gt;.*&lt;/ins&gt;)&quot;;
$text =  $renderer-&gt;render($diff);
$textold = preg_replace($regexold,'',$text);
$textnew = preg_replace($regexnew,'',$text);
?&gt;
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 transitional//EN&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;title&gt;DIFF TEST&lt;/title&gt;
&lt;style&gt;	ins {background-color: Lime;}
	del {background-color: Red;}
	div {border: medium;border-color: blue; border-style: solid; width: 300px;background-color: #EEEEEE;}
&lt;/style&gt;
&lt;/head&gt;&lt;body&gt;
&lt;div&gt;&lt;?php echo nl2br($text); ?&gt;&lt;/div&gt;
&lt;div&gt;&lt;?php echo nl2br($textold); ?&gt;&lt;/div&gt;
&lt;div&gt;&lt;?php echo nl2br($textnew); ?&gt;&lt;/div&gt;&lt;html&gt;

Expected result:
----------------
The new line should appear as a single line,
actualy it is shown on two lines (see html below).

Actual result:
--------------
&lt;div&gt;This line is the same.&lt;br /&gt;
This&lt;ins&gt; is new !!&lt;br /&gt;

This&lt;/ins&gt; line is different in &lt;del&gt;1.txt&lt;/del&gt;&lt;ins&gt;2.txt&lt;/ins&gt;&lt;br /&gt;
This line is the same.&lt;br /&gt;
&lt;del&gt;This is gone away !!&lt;/del&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;This line is the same.&lt;br /&gt;
This&lt;ins&gt; is new !!&lt;br /&gt;

This&lt;/ins&gt; line is different in &lt;ins&gt;2.txt&lt;/ins&gt;&lt;br /&gt;
This line is the same.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;This line is the same.&lt;br /&gt;
This&lt;ins&gt; is new !!&lt;br /&gt;
This&lt;/ins&gt; line is different in &lt;del&gt;1.txt&lt;/del&gt;&lt;br /&gt;

This line is the same.&lt;br /&gt;
&lt;del&gt;This is gone away !!&lt;/del&gt;&lt;br /&gt;
&lt;/div&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Diff Feature/Change Request
Reported by thomas@...
2005-08-03T05:35:40+00:00
PHP: 5.0.4 OS: windows 2000 Package Version: 

Description:
------------
The following script shows the new line not at the exact position.
The two files are :
/* 1.txt :
This line is the same.
This line is different in 1.txt
This line is the same.
This is gone away !!
*/
/* 2.txt
This line is the same.
This is new !!
This line is different in 2.txt
This line is the same.
*/

Test script:
---------------
&lt;?php
include_once 'Text/Diff.php';
include_once 'Text/Diff/Renderer.php';
include_once 'Text/Diff/Renderer/inline.php';
$lines1 = file('1.txt');
$lines2 = file('2.txt');
$diff = &amp;new Text_Diff($lines1, $lines2);
$renderer = &amp;new Text_Diff_Renderer_inline();
$regexold = &quot;(&lt;del&gt;.*&lt;/del&gt;)&quot;;
$regexnew = &quot;(&lt;ins&gt;.*&lt;/ins&gt;)&quot;;
$text =  $renderer-&gt;render($diff);
$textold = preg_replace($regexold,'',$text);
$textnew = preg_replace($regexnew,'',$text);
?&gt;
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 transitional//EN&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;title&gt;DIFF TEST&lt;/title&gt;
&lt;style&gt;	ins {background-color: Lime;}
	del {background-color: Red;}
	div {border: medium;border-color: blue; border-style: solid; width: 300px;background-color: #EEEEEE;}
&lt;/style&gt;
&lt;/head&gt;&lt;body&gt;
&lt;div&gt;&lt;?php echo nl2br($text); ?&gt;&lt;/div&gt;
&lt;div&gt;&lt;?php echo nl2br($textold); ?&gt;&lt;/div&gt;
&lt;div&gt;&lt;?php echo nl2br($textnew); ?&gt;&lt;/div&gt;&lt;html&gt;

Expected result:
----------------
The new line should appear as a single line,
actualy it is shown on two lines (see html below).

Actual result:
--------------
&lt;div&gt;This line is the same.&lt;br /&gt;
This&lt;ins&gt; is new !!&lt;br /&gt;

This&lt;/ins&gt; line is different in &lt;del&gt;1.txt&lt;/del&gt;&lt;ins&gt;2.txt&lt;/ins&gt;&lt;br /&gt;
This line is the same.&lt;br /&gt;
&lt;del&gt;This is gone away !!&lt;/del&gt;&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;This line is the same.&lt;br /&gt;
This&lt;ins&gt; is new !!&lt;br /&gt;

This&lt;/ins&gt; line is different in &lt;ins&gt;2.txt&lt;/ins&gt;&lt;br /&gt;
This line is the same.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div&gt;This line is the same.&lt;br /&gt;
This&lt;ins&gt; is new !!&lt;br /&gt;
This&lt;/ins&gt; line is different in &lt;del&gt;1.txt&lt;/del&gt;&lt;br /&gt;

This line is the same.&lt;br /&gt;
&lt;del&gt;This is gone away !!&lt;/del&gt;&lt;br /&gt;
&lt;/div&gt;</pre>]]></description>
      <dc:date>2007-09-26T10:31:02+00:00</dc:date>
      <dc:creator>thomas &amp;#x61;&amp;#116; luz-webwide &amp;#x64;&amp;#111;&amp;#x74; de</dc:creator>
      <dc:subject>Text_Diff Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
