-
Notifications
You must be signed in to change notification settings - Fork 5
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
Preserve Newlines when running PrettifyCommand #86
Comments
@garretthyder Sorry, have been a bit busy the past days, will resume checking on these issues. |
@garretthyder Can you please show the piece of syntax that didn't preserve the new lines? |
Hi @amostajo no worries, sorry for my delayed response. Here's the before/after of the prettify command on my in progress project; The first thing to note is the new lines between code gets stripped as does some that was surrounding functions. Also note some oddities that occur with the conditional becoming multi-line and only one of the add_assets becoming multiline. |
Umm, ok lets review what we can do, in the meantime you can user option Example: php ayuco add:init ConfigController@init --nopretty --comment="Configuration settings." |
Btw... For this: $this->add_action( 'admin_menu', 'AdminController@menu' ); Try the addon: |
Thanks @amostajo sounds good, I'll use nopretty for the time being. And that addon looks awesome, I'll delve in and add it to my roadmap for a future update. |
Hello @amostajo,
Testing the PrettifyCommand I found it stripped all empty lines from my code causing everything to be bunched together and harder to read. It would be nice if it's possible to keep newlines preserved.
Thanks
The text was updated successfully, but these errors were encountered: