超越比较十六进制细节颜色的含义

I'm trying to replace the CRLF characters in a file and it's working for all but one line. When I view the file in Beyond Compare and look at the hex details, the only difference is that the 0D 0A for that line is blue, whereas other lines where I was able to successfully remove the characters, it's gray.

这是成功删除CRLF的行:

enter image description here

这是我遇到的问题:

enter image description here

我以为是因为问题行与我要比较的文件之间存在差异,但我在另一行上创建了差异,但仍然显示为灰色。

我确定这是有含义的,但我无法在文档中找到它。我希望这个含义能给我一些指示,说明为什么当我似乎无法从这一行中删除行尾时,它可以与所有其他行完美地一起工作。

I'm reading the file using StreamReader and the ReadToEnd method, then I'm replacing the line feeds like so:

line = line.Replace("<tagname>\r\n", "<tagname>");

同样,在问题行之前和之后,我正在做此确切操作的其他10条左右的行中,这也可以正常工作,并且所有这些行都很好。在这上面。头。

评论