Skip to content

Reader doesn't return full multi-line texts #126

Closed
@gaxweb

Description

@gaxweb

EDI text may span multiple lines by breaking it apart using the : character.

In the Reader::readEdiDataValue() method, a field like that will be spread across multiple array entries, because the EDI value is blindly split at every :.

Since you can't really know how many lines of text there will be beforehand, you can't really retrieve the full text via that method, only ever the 1st part up to the 1st line-break introduced by the :.

Example from a PRICAT file:

IMD+F+DS2+::91:The first line goes here :and the second one goes here:EN'

$reader->readEdiDataValue(['IMD', ['1' => 'F', '2' =>'DS2']], 3, 3) will only return the text The first line goes here .

Interestingly, the Analyzer does mark both array entries as description and the last one as language code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions