How to ignore (all kinds of) line breaks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • David.P
    Visitor
    • Mar 2012
    • 6

    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
  • Aaron
    Team Scooter
    • Oct 2007
    • 16000

    #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

    • David.P
      Visitor
      • Mar 2012
      • 6

      #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

      • Aaron
        Team Scooter
        • Oct 2007
        • 16000

        #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:
        http://www.scootersoftware.com/downl...kb_moreformats

        and the Alternative section (with some Tidied variants) is here:
        http://www.scootersoftware.com/downl...oreformats_alt

        And to create a custom format, see this article:
        http://www.scootersoftware.com/suppo...rnalconversion
        Aaron P Scooter Software

        Comment

        Working...