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

[Feature Request]: Splitting a long string into several lines using '\' #13889

Open
md-tr opened this issue Nov 10, 2024 · 0 comments
Open

[Feature Request]: Splitting a long string into several lines using '\' #13889

md-tr opened this issue Nov 10, 2024 · 0 comments

Comments

@md-tr
Copy link

md-tr commented Nov 10, 2024

My request simply is to make this syntax valid, and I still don't understand why was this not added at the very beginning:

message('this string isn\'t meant to be multiline, I just \
want to split my long strings into several lines so my meson \
file looks cleaner and my lines don't exceed 80 characters')

I have noticed that in some of the docs, what follows is taken from this one, this method is used, although it lacks simplicity and practicality:

# ...
option('long_desc', type : 'string', value : 'optval',
       description : 'An option with a very long description' +
                     'that does something in a specific context') # Since 0.55.0

Why would one force themselves to use this syntax? The + between just makes things look more complicated.

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

No branches or pull requests

1 participant