Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12080

Allow creating csv content without last eol

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.21.0
    • camel-bindy
    • None
    • Novice

    Description

      Hello,
      rfc4180 for CSV states:

      The last record in the file may or may not have an ending line break.

      For deserialization Bindy accepts both types of files, but for serialization Bindy to my knowledge always creates content with last row ending with newline. Unfortunately some legacy systems treat last newline as one more empty row. Would it be possible to introduce control over this? I have this problem in CSV and also in fixed format for one other place. For now we need to strip the last char in Camel processor.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            adie Marcin Domanski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: