No announcement yet.

Ignoring end of line

  • Filter
  • Time
  • Show
Clear All
new posts

  • Ignoring end of line

    1. Is it possible to successfully compare important text that wraps differently on each side? That is, the end of line(s) is/are in a different position/s within the text on each side. I would like that to be an unimportant difference. In my case this will occur when the text stream starts with a specific character sequence.
    2. If so, is it possible to ignore a batch of initial characters on the second line? That is, the text stream is interrupted by an end of line and a number of other specific characters.

    For example

    1 TEXT This is s
    2 CONT ome text

    is equivalent to
    1 TEXT This is some text

  • #2

    No, the text break is always considered important, and the comparisons are line by line of the aligned lines. To help with these cases, the most common strategy is to Tidy the files to normalize the whitespace and line breaks.

    We have a few tidy/tidied variants for some formats, here:

    There is also a KB article for how to use a custom command line program to perform any type of conversion. The article uses RESX as the example type:
    Aaron P Scooter Software