_StringUnindent

Returns text in string with lines left or right unindented (if possible) with given string

#include "String and File String.au3"
_StringUnindent( $sString [, $sUnindentString = " " [, $bRightUnindent = False ]] )

parameters

$sString String with text to unindent
$sUnindentString String used to unindent
$bRightUnindent True = Unindent right side of text, False = Left side

return value

string value String with unindented text

related

_StringIndent, _StringTotalUnindent, _StringIndentCount

examples

_StringUnindent( $SomeText ) ; Returns the text in $SomeText unindented left with a space

_StringUnindent( $AnotherText, "    ", True ) ; Returns the text in $AnotherText unindented right with 3 spaces (if possible)