_StringIndent

Returns text in string with lines left or right indented with given string

#include "String and File String.au3"
_StringIndent( $sString [, $sIndentString = " " [, $bRightIndent = False ]] )

parameters

$sString String with text to indent
$sIndentString String used to indent
$bRightIndent True = Indent right side of text, False = Left side

return value

string value String with indented text

related

_StringUnindent, _StringTotalUnindent, _StringIndentCount

examples

_StringIndent( $SomeText ) ; Returns the text in $SomeText indented left with a space

_StringIndent( $AnotherText, "    ", True ) ; Returns the text in $AnotherText indented right with 3 spaces