Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text Assembly: allow for multiple line assembly #598

Merged
merged 2 commits into from
Aug 11, 2023

Conversation

jelliottp
Copy link
Contributor

Open to feedback here, this case didn't fit the framework quite as cleanly as I would have liked.

@jelliottp jelliottp requested a review from a team as a code owner July 24, 2023 16:18
Comment on lines 46 to 50
IF previous_row IS NOT INITIAL
AND <token>-row > previous_row
AND <token>-str = '|'.
multiple_lines = abap_true.
ENDIF.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assumes that in "multi-line strings" the first token of the next row will always be the `|``. But we can also have this:

data(str) = |this is a very long string with some { placeholder }|
    && |and this is the rest of the string with another { placeholder }|.

I think we need to separately track "is there a | used here?" and "is there a linebreak in here?" as two booleans and if both are true, then no finding should be emitted.

Copy link
Contributor Author

@jelliottp jelliottp Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bjoern-jueliger-sap, just pushed a change to do this.

@bjoern-jueliger-sap bjoern-jueliger-sap merged commit eee11ee into SAP:master Aug 11, 2023
4 checks passed
@jelliottp jelliottp deleted the text_assembly branch August 16, 2023 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants