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

add trim and filter out indentation #10

Open
tschallacka opened this issue Mar 31, 2016 · 3 comments
Open

add trim and filter out indentation #10

tschallacka opened this issue Mar 31, 2016 · 3 comments

Comments

@tschallacka
Copy link

It would be nice if the text could be trimmed of surplus whitespace and beginning and end and whitespace after \n that corresponds with starting indentation is removed.

so

 /**
  foo
  bar
  */

doesn't turn in

 "
      foo
      bar
      "

but in

  "foo
   bar"
@rimmeraj
Copy link
Contributor

I have a change for this. Once my first pull request is merged I will create a second pull request

@schlebe
Copy link

schlebe commented Dec 6, 2018

This is interesting but this must be implemented using a parameter in @Multiline !
Example: @Multiline(trim="true")

Sorry, in reading your code, I see that this is already the case.

You have made a good job !

@KnIfER
Copy link

KnIfER commented Jul 22, 2021

I added simple trim and gcc compile support~

see https://github.com/KnIfER/Metaline

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

4 participants