Announcement

Collapse
No announcement yet.

How to ignore (all kinds of) line breaks

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

  • How to ignore (all kinds of) line breaks

    Hi forum,

    just one (hopefully) very simple question:

    (How) can I avoid to get the following lines reported as "different" by BC (or just by ANY comparison software, for that matter):

    Code:
    left:
    <div id="footer-int-2">© 2009 - 2010 ACME - all
    rights reserved</div>
    
    right:
    <div id="footer-int-2">© 2009 - 2010 ACME - all rights reserved</div>
    Thanks heaps already,
    David.P

  • #2
    Hello David,

    BC3 always considers line breaks as important changes. We cannot currently mark those two lines as equal.

    You can use a pre-process to normalize the whitespace and line breaks; we have a few file formats which do this available for download, such as HTML Tidied and XML Tidied under the Alternatives Download link. Once formatted, if you make any edits and save them, it will save the file with the new formatting.
    Aaron P Scooter Software

    Comment


    • #3
      Hi Aaron and thank you for the hint regarding the additional import filters. I'll try these next time the problem arises (this time I've already cleaned up the line breaks by hand).

      Regards David.P

      Comment


      • #4
        For some reason, I don't see the URL in my previous post. I meant to include a direct link to the file formats:
        Beyond Compare is a multi-platform utility that combines directory compare and file compare functions in one package. Use it to manage source code, keep directories in sync, compare program output, etc.


        and the Alternative section (with some Tidied variants) is here:
        Beyond Compare is a multi-platform utility that combines directory compare and file compare functions in one package. Use it to manage source code, keep directories in sync, compare program output, etc.


        And to create a custom format, see this article:
        Beyond Compare is a multi-platform utility that combines directory compare and file compare functions in one package. Use it to manage source code, keep directories in sync, compare program output, etc.
        Aaron P Scooter Software

        Comment

        Working...
        X