﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1215	_arrayDisplay() displays incorrectly when pipe character is is present in flelds.	anonymous	Jpm	"Environment = 3.3.1.1 under  WIN_XP/Service Pack 3 X86

In AutoIt beta 3.3.1.1 _arrayDisplay() displays data incorrectly under specific conditions.
When the default separator character is ""|"" and is present in the array data, the _arrayDisplay() displays rows twice and columns that contain the separator character are truncated at the separator character.
AutoIt 3.3.0.0 truncates data in columns but does not display rows twice.
Reproduction Script 
{{{
#include <array.au3>
;displays rows twice and only data up to pipe character in second column
Global $a[5][2] = [[1,""a|A""],[2,""b|B""],[3,""c|C""],[4,""d|D""],[5,""e|E""]]
_ArrayDisplay($a)

;displays correctly
Global $a[5][2] = [[1,""a,A""],[2,""b,B""],[3,""c,C""],[4,""d,D""],[5,""e,E""]]
_ArrayDisplay($a)
}}}

A possible fix is to add the following lines
{{{
  If $sSeparator = $sReplace Then
    If $sSeparator = Chr(124) Then
      $sReplace = Chr(126)
    Else
      $sReplace = Chr(124)
    EndIf
  EndIf
}}}
immediately after this line in _arrayDisplay(). 
{{{
  If $sSeparator = """" Then $sSeparator = Chr(124)
}}}"	Bug	closed	3.3.1.3	Standard UDFs	3.3.1.1	None	Fixed	_arrayDisplay	
