Skip to content

Commit 4cde8d9

Browse files
author
Hardik Gajjar
committed
MISC: Add new line to UNA segment line
1 parent 765ffc1 commit 4cde8d9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/EDI/Encoder.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,14 @@ private function escapeValue($str)
114114
return str_replace($search, $replace, $str);
115115
}
116116

117-
public function get()
117+
public function get($wrap = true)
118118
{
119119
if ($this->UNAActive) {
120+
121+
if ($wrap === false) {
122+
$this->symbEnd .= "\n";
123+
}
124+
120125
return "UNA" . $this->sepComp .
121126
$this->sepData .
122127
$this->sepDec .

0 commit comments

Comments
 (0)