You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Var =
(
A line of text.
By default, the hard carriage return (Enter) between the previous line and this one will be stored as a linefeed (`n).
By default, the spaces to the left of this line will also be stored (the same is true for tabs).
By default, variable references such as %Var% are resolved to the variable's contents.
)
Current formatting:
Var =
(
A line of text.
By default, the hard carriage return (Enter) between the previous line and this one will be stored as a linefeed (`n).
By default, the spaces to the left of this line will also be stored (the same is true for tabs).
By default, variable references such as %Var% are resolved to the variable's contents.
)
All text inside parenthesis are indented, this is wrong. We lose user formatting.
Official doc says: LTrim: Omits spaces and tabs at the beginning of each line. This is primarily used to allow the continuation section to be indented.
Question:
Maybe user must manually format such continuation sections and formatter never touch such sections?
Formatter can indent continuation sections, only if there LTrim right after open parenthesis?
{
Var =
( LTrim
A line of text with preserved extra spaces between words.
)
Var =
(
User formats this text as he needs.
I need here only two spaces.
But here six spaces and four spaces between words.
)
}
How about implement formatting of continuation sections like in official documentation?
FileAppend, This is the text to append.`n ; A comment is allowed here.
, %A_ProgramFiles%\SomeApplication\LogFile.txt ; Comment.
ProductIsAvailable := (Color = "Red")
? false
: ProductIsAvailableInColor(Product, Color)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Related: #25
Official doc says:
Current formatting:
All text inside parenthesis are indented, this is wrong. We lose user formatting.
Official doc says:
LTrim
: Omits spaces and tabs at the beginning of each line. This is primarily used to allow the continuation section to be indented.Question:
LTrim
right after open parenthesis?Related: #58
How about implement formatting of continuation sections like in official documentation?
EDITED: Fully implemented in #260 PR
Beta Was this translation helpful? Give feedback.
All reactions