Spaces being eaten in colored diffs

Tim Buck tbuck at rrinc.com
Thu Oct 28 13:23:14 PDT 2004


On Oct 28, 2004, at 3:18 PM, Ville Skyttä wrote:

> On Thu, 2004-10-28 at 00:46, Tim Buck wrote:
>> I'm seeing some strange behavior in CVSweb, both v3.0.1 and 3.0.2.
>> Spaces are being "eaten" in the colored (human-readable) diff output
>> under certain circumstances. The output is correct for the unified
>> and context diffs.
>
> Do you have String::Ediff installed?  It has known whitespace related
> limitations.

Yes, I do have that module installed. Should I remove it? Should I have
an alternate module installed instead?

>
>> Attached is the full HTML file that was output [...]
>
> Nope, that's not HTML ;)

It was when I attached it -- apparently the list processing software
mangled it. I'll try again, with a .txt extension appended to the
filename.

-------------- next part --------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>systems/formworks/attrpanel/src.bcb_attrpanel/attredit_panel.cpp - diff - 1.63</title>
<meta name="robots" content="nofollow" />
<meta name="generator" content="FreeBSD-CVSweb 3.0.2" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="/css/cvsweb.css" />
</head>
<body class="src">
<table class="navigate-header" width="100%" summary="Navigation">
 <tr>
  <td>
<a href="/cgi-bin/cvsweb-new/systems/formworks/attrpanel/src.bcb_attrpanel/attredit_panel.cpp#rev1.63"><img src="/icons/back.gif" alt="[BACK]" border="0" width="20" height="22" /></a><b>Return to <a href="/cgi-bin/cvsweb-new/systems/formworks/attrpanel/src.bcb_attrpanel/attredit_panel.cpp#rev1.63">attredit_panel.cpp</a> CVS log</b> <img src="/icons/text.gif" alt="[TXT]" border="0" width="20" height="22" /></td>  <td style="text-align: right"><img src="/icons/dir.gif" alt="[DIR]" border="0" width="20" height="22" /> <b>Up to  <a href="/cgi-bin/cvsweb-new/#dirlist">[Development]</a> / <a href="/cgi-bin/cvsweb-new/systems/#dirlist">systems</a> / <a href="/cgi-bin/cvsweb-new/systems/formworks/#dirlist">formworks</a> / <a href="/cgi-bin/cvsweb-new/systems/formworks/attrpanel/#dirlist">attrpanel</a> / <a href="/cgi-bin/cvsweb-new/systems/formworks/attrpanel/src.bcb_attrpanel/#dirlist">src.bcb_attrpanel</a></b></td>
 </tr>
</table>
<form method="get" action="%s"><div style="float: left">
<label for="f">Diff format:<br />
<input type="hidden" name="r1" value="1.62" />
<input type="hidden" name="r2" value="1.63" />
<select id="f" name="f" onchange="this.form.submit()">
<option value="h">Long colored</option>
<option value="H" selected="selected">Colored</option>
<option value="u">Unified</option>
<option value="c">Context</option>
<option value="s">Side by side</option>
</select></label>
<input type="submit" value="Show" />
</div>
<table style="float: right; border: thin outset" cellspacing="0" cellpadding="1" title="Legend" summary="Legend">
 <tr>
  <td align="center" class="diff-removed">Removed from v.1.62</td>
  <td class="diff-empty">&nbsp;</td>
 </tr><tr class="diff-changed">
  <td align="center" colspan="2">changed lines</td>
 </tr><tr>
  <td class="diff-empty">&nbsp;</td>
  <td align="center" class="diff-added">Added in v.1.63</td>
 </tr>
</table>
</form>

<h3 style="text-align: center">Diff for /systems/formworks/attrpanel/src.bcb_attrpanel/attredit_panel.cpp between versions 1.62 and 1.63</h3>
<table border="0" cellspacing="0" cellpadding="0" width="100%" summary="Diff output">
<tr style="background-color: #ffffff">
<th style="text-align: center; vertical-align: top" width="50%">
<a href="attredit_panel.cpp;rev=1.62">version 1.62</a>, 2003/09/03 19:10:14
</th>
<th style="text-align: center; vertical-align: top" width="50%">
<a href="attredit_panel.cpp;rev=1.63">version 1.63</a>, 2004/10/27 11:59:47
</th>
</tr>
<tr>
<td width="50%" class="diff-heading">
 <b><a href="attredit_panel.cpp;content-type=text%2Fx-cvsweb-markup;ln=1;rev=1.62#l7257">Line&nbsp;7257</a></b>&nbsp;<span style="font-size: smaller">&nbsp;RRISTAT&nbsp;TAttrPanel_Private::PutStringLis</span>
</td>
<td width="50%" class="diff-heading">
 <b><a href="attredit_panel.cpp;content-type=text%2Fx-cvsweb-markup;ln=1;rev=1.63#l7257">Line&nbsp;7257</a></b>&nbsp;<span style="font-size: smaller">&nbsp;RRISTAT&nbsp;TAttrPanel_Private::PutStringLis</span>
</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp;</td>
 <td class="diff diff-same">&nbsp;</td>
</tr>
<tr><td><span class="diff diff-changed"></span><span class="diff diff-unchanged"> &nbsp; &nbsp; &nbsp; &nbsp;delete</span><span class="diff diff-changed"></span><span class="diff diff-unchanged">string_list;</span><span class="diff diff-changed"></span></td><td><span class="diff diff-changed"></span><span class="diff diff-unchanged"> &nbsp; &nbsp; &nbsp; &nbsp;delete</span><span class="diff diff-changed">[]</span><span class="diff diff-unchanged"> string_list;</span><span class="diff diff-changed"></span></td></tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;}</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;}</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;else</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;else</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;{</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;{</td>
</tr>
<tr>
<td width="50%" class="diff-heading">
 <b><a href="attredit_panel.cpp;content-type=text%2Fx-cvsweb-markup;ln=1;rev=1.62#l7308">Line&nbsp;7308</a></b>&nbsp;<span style="font-size: smaller">&nbsp;RRISTAT&nbsp;TAttrPanel_Private::PutStringLis</span>
</td>
<td width="50%" class="diff-heading">
 <b><a href="attredit_panel.cpp;content-type=text%2Fx-cvsweb-markup;ln=1;rev=1.63#l7308">Line&nbsp;7308</a></b>&nbsp;<span style="font-size: smaller">&nbsp;RRISTAT&nbsp;TAttrPanel_Private::PutStringLis</span>
</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp;</td>
 <td class="diff diff-same">&nbsp;</td>
</tr>
<tr><td><span class="diff diff-changed"></span><span class="diff diff-unchanged"> &nbsp; &nbsp; &nbsp; &nbsp;delete</span><span class="diff diff-changed"></span><span class="diff diff-unchanged">list;</span><span class="diff diff-changed"></span></td><td><span class="diff diff-changed"></span><span class="diff diff-unchanged"> &nbsp; &nbsp; &nbsp; &nbsp;delete</span><span class="diff diff-changed">[]</span><span class="diff diff-unchanged"> list;</span><span class="diff diff-changed"></span></td></tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;}</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;}</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;else</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;else</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;{</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;{</td>
</tr>
<tr>
<td width="50%" class="diff-heading">
 <b><a href="attredit_panel.cpp;content-type=text%2Fx-cvsweb-markup;ln=1;rev=1.62#l7359">Line&nbsp;7359</a></b>&nbsp;<span style="font-size: smaller">&nbsp;RRISTAT&nbsp;TAttrPanel_Private::PutStringLis</span>
</td>
<td width="50%" class="diff-heading">
 <b><a href="attredit_panel.cpp;content-type=text%2Fx-cvsweb-markup;ln=1;rev=1.63#l7359">Line&nbsp;7359</a></b>&nbsp;<span style="font-size: smaller">&nbsp;RRISTAT&nbsp;TAttrPanel_Private::PutStringLis</span>
</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp;</td>
 <td class="diff diff-same">&nbsp;</td>
</tr>
<tr><td><span class="diff diff-changed"></span><span class="diff diff-unchanged"> &nbsp; &nbsp; &nbsp; &nbsp;delete</span><span class="diff diff-changed"></span><span class="diff diff-unchanged">list;</span><span class="diff diff-changed"></span></td><td><span class="diff diff-changed"></span><span class="diff diff-unchanged"> &nbsp; &nbsp; &nbsp; &nbsp;delete</span><span class="diff diff-changed">[]</span><span class="diff diff-unchanged"> list;</span><span class="diff diff-changed"></span></td></tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;}</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;}</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;else</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;else</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;{</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;{</td>
</tr>
<tr>
<td width="50%" class="diff-heading">
 <b><a href="attredit_panel.cpp;content-type=text%2Fx-cvsweb-markup;ln=1;rev=1.62#l7410">Line&nbsp;7410</a></b>&nbsp;<span style="font-size: smaller">&nbsp;RRISTAT&nbsp;TAttrPanel_Private::PutStringLis</span>
</td>
<td width="50%" class="diff-heading">
 <b><a href="attredit_panel.cpp;content-type=text%2Fx-cvsweb-markup;ln=1;rev=1.63#l7410">Line&nbsp;7410</a></b>&nbsp;<span style="font-size: smaller">&nbsp;RRISTAT&nbsp;TAttrPanel_Private::PutStringLis</span>
</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp;</td>
 <td class="diff diff-same">&nbsp;</td>
</tr>
<tr><td><span class="diff diff-changed"></span><span class="diff diff-unchanged"> &nbsp; &nbsp; &nbsp; &nbsp;delete</span><span class="diff diff-changed"></span><span class="diff diff-unchanged">list;</span><span class="diff diff-changed"></span></td><td><span class="diff diff-changed"></span><span class="diff diff-unchanged"> &nbsp; &nbsp; &nbsp; &nbsp;delete</span><span class="diff diff-changed">[]</span><span class="diff diff-unchanged"> list;</span><span class="diff diff-changed"></span></td></tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;}</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;}</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;else</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;else</td>
</tr>
<tr>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;{</td>
 <td class="diff diff-same">&nbsp; &nbsp; &nbsp;{</td>
</tr>
</table>
<hr style="width: 100%" />
<form method="get" action="/cgi-bin/cvsweb-new/systems/formworks/attrpanel/src.bcb_attrpanel/attredit_panel.cpp.diff">
<div style="float: left">
<label for="f">Diff format:<br />
<input type="hidden" name="r1" value="1.62" />
<input type="hidden" name="r2" value="1.63" />
<select id="f" name="f" onchange="this.form.submit()">
<option value="h">Long colored</option>
<option value="H" selected="selected">Colored</option>
<option value="u">Unified</option>
<option value="c">Context</option>
<option value="s">Side by side</option>
</select></label>
<input type="submit" value="Show" />
</div>
<table style="float: right; border: thin outset" cellspacing="0" cellpadding="1" title="Legend" summary="Legend">
 <tr>
  <td align="center" class="diff diff-removed">Removed from v.1.62</td>
  <td class="diff diff-empty">&nbsp;</td>
 </tr><tr class="diff diff-changed">
  <td align="center" colspan="2">changed lines</td>
 </tr><tr>
  <td class="diff diff-empty">&nbsp;</td>
  <td align="center" class="diff diff-added">Added in v.1.63</td>
 </tr>
</table>
</form>
<br clear="all" />
<hr />
<address><span style="font-size: smaller">Tim Buck &lt;<a href="mailto:tbuck at rrinc.com">tbuck at rrinc.com</a>&gt;</span></address>
</body>
</html>
-------------- next part --------------


Tim Buck * Information Technology Manager * Recognition Research, Inc.
PHONE +1 540 961-6500 * FAX +1 540 961-3568 * EMAIL tbuck at rrinc.com
The only thing to do with good advice is to pass it on. -- Oscar Wilde



More information about the freebsd-cvsweb mailing list