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
for me the alignment of chained declarations using the default action for chains (align name, type, length, value, ...) looks not as expected.
METHOD b.
DATA: gt_mat TYPE STANDARD TABLE OF mara,
gv_one TYPE DECFLOAT16 LENGTH 8 DECIMALS 2,
gv_second TYPE p LENGTH 8 DECIMALS 0,
gv_bool TYPE abap_bool.
ENDMETHOD.
will be cleaned to:
METHOD b.
DATA: gt_mat TYPE STANDARD TABLE OF mara,
gv_one TYPE decfloat16 LENGTH 8 DECIMALS 2,
gv_second TYPE p LENGTH 8 DECIMALS 0,
gv_bool TYPE abap_bool.
ENDMETHOD.
I think the alignment of LENGTH with the end of the first line doesn't look good.
I hoped more for a cleaned version like the result of this (first line is not in the chain)
method a.
DATA gt_mat TYPE STANDARD TABLE OF mara.
DATA: gv_one TYPE DECFLOAT16 LENGTH 8 DECIMALS 2,
gv_second TYPE p LENGTH 8 DECIMALS 0,
gv_bool TYPE abap_bool.
ENDMETHOD.
Result:
METHOD a.
DATA gt_mat TYPE STANDARD TABLE OF mara.
DATA: gv_one TYPE decfloat16 LENGTH 8 DECIMALS 2,
gv_second TYPE p LENGTH 8 DECIMALS 0,
gv_bool TYPE abap_bool.
ENDMETHOD.
Thanks!
The text was updated successfully, but these errors were encountered:
thanks a lot for this example, absolutely agree, the lengthy "TYPE STANDARD TABLE OF mara" should not influence the width of the entire TYPE column. Will look into this!
this will be fixed with the next release, where TABLE type clauses will not influence the width of the TYPE … column in other declaration lines anymore:
Kind regards,
Jörg-Michael
jmgrassau
added a commit
to jmgrassau/abap-cleaner
that referenced
this issue
Nov 13, 2023
Hi,
for me the alignment of chained declarations using the default action for chains (align name, type, length, value, ...) looks not as expected.
will be cleaned to:
I think the alignment of LENGTH with the end of the first line doesn't look good.
I hoped more for a cleaned version like the result of this (first line is not in the chain)
Result:
Thanks!
The text was updated successfully, but these errors were encountered: