Announcement

Collapse
No announcement yet.

LIne-breaks?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Aaron
    replied
    Hello Vinn,

    Sorry, my statement is not one of intent but of how our program currently works. We do have it on our wishlist to implement this feature, but as I mentioned above it's a large project and we don't have a timeframe for it. In the meantime, are you able to copy/paste the text out of BC3 and into Ultra Compare Lite for comparison?

    Leave a comment:


  • vinn01
    replied
    I'd like to opine that no, linebreaks within a file are are NOT always important. I'm trying to compare a Word document, containing the "fine print" that is supposed to appear at the bottom of a generated PDF file to the generated PDF file. I've tried text compare and a PDF compare, but the differrent line line breaks thwart any comparison.

    I wish that Beyond Compare would give an easy selection for "Ignore line terminators", along with "Ignore case", "Ignore spaces", and "Ignore Blank lines". Those are the selections on the opening page of Ultra Compare. But I only have Ultra Compare Lite, not Ultra Compare Pro so I can't compare PDF files and most of the Beyond Compare functionality is missing.

    Leave a comment:


  • CarlB
    replied
    I haven't. When I get a chance I'll check it out, thanks!

    Leave a comment:


  • tlscales
    replied
    C/C++ normalization

    Have you looked at Polystyle (http://www.polystyle.com/)?
    Last edited by Chris; 08-Jul-2011, 05:33 PM. Reason: Fixed broken link.

    Leave a comment:


  • CarlB
    replied
    Thanks for the reply, Aaron. I don't know of any tools to normalize C/C++, but if I find one I'll be sure to post it.

    Carl

    Leave a comment:


  • Aaron
    replied
    Hello,

    Linebreaks within a file are are still always important to the comparison, and are not ignore-able like a space or tab character. It is a non-trivial project, so while it is something we would like to tackle we do not have a timeframe for it.

    Our current workaround is to use a pre-process to normalize the line breaks and whitespace within a file. We have some examples for HTML, XML, and Java in our additional downloads for BC3's file formats (the Tidied variants), but I am not familiar with one for C++. If you know of one, please let us know; you can create a custom file format that uses it by following an example like this:
    http://www.scootersoftware.com/suppo...rnalconversion

    Leave a comment:


  • CarlB
    replied
    Hello,

    I know this is an old thread, but I ran into this issue today (not being able to treat line breaks as white space). This can make large diffs of many code files (C/C++ in my case) where the author has made stylistic changes, such as changing:

    int
    func(char c);

    to:

    int func(char c);

    ... much harder to find important changes. IMO if the language considers it unimportant, we should have the option of defining it as unimportant. Maybe allowing the user to define what "white space" means for a given file type would resolve this issue?

    Apologies if this has been resolved already, but I searched the options, help files, and this forum and didn't find anything indicating otherwise. If it's not been resolved yet, I would ask you to please consider it again. Given that it's been a few years since it was initially brought up, my guess is that it's not a trivial problem to solve, but it would be great to have some sort of update on this.

    Thanks,

    Carl

    Leave a comment:


  • Aaron
    replied
    Beyond Compare 2 can only run one Rule at a time (either word conversion to text, or PDF conversion to text).

    Beyond Compare 3 can trigger independent File Formats on either side. This still requires the Word doc and PDF to be converted to text, but the conversion can be done automatically using your custom command lines, or our available File Formats (built-in or available on the website).
    http://www.scootersoftware.com/downl...kb_moreformats

    Leave a comment:


  • blueshrike
    replied
    Another vote

    My use case. I have a text file that was converted from PDF that inserted line breaks within lines. I tried comparing it to a text file generated from a word doc. It didn't work. Of course, if the PDF to Word comparison had worked, then I wouldn't have needed this.

    Leave a comment:


  • Chris
    replied
    Ignoring line breaks isn't possible in BC 3.0.10, our current release. We're still considering it as a possibility for a future version.

    Leave a comment:


  • lchapon
    replied
    Any news on this really annoying line-break thing ?

    Leave a comment:


  • SarekOfVulcan
    replied
    Re: LIne-breaks?

    Another vote for this one too, please. I have a file where I'm breaking the input at particular locations. I shouldn't be changing anything else in one particular section of the file, so I'd like to be able to compare it and make sure the line breaks are the only change.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Re: LIne-breaks?

    I agree. A comparison tool that treats line feeds/carriage returns as differences is no use to me whatsoever.

    My quest to find a comparison tool that does what I need continues....

    Leave a comment:


  • lchapon
    replied
    Re: LIne-breaks?

    "Lots of red" here too when reformatting source code, drowning the actual few important changes = making Beyond Compare useless in that situation !

    Being able to consider line-breaks as unimportant differences (or to ignore them altogether) would be more than just a cute little addition.

    Just my 0.02
    Thanks

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Re: LIne-breaks?

    I tried XMLTidy and it solves the problem reasonably, and without any impact to usability. Thanks!!

    Andy

    Leave a comment:

Working...
X