Glavin001 / atom-beautify

:mega: Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | :lipstick: Universal beautification package for Atom editor (:warning: Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding :heart: )
http://unibeautify.com/
MIT License
1.5k stars 453 forks source link

Ubuntu atom-beautify not beautifying #2546

Open yarkingulacti opened 3 years ago

yarkingulacti commented 3 years ago

Description

The results of beautification are not what I expect. I'm on Ubuntu 20.04.

Input Before Beautification

This is what the code looked like before:

 if ($posts->isEmpty()) {
            return back()
                          ->withErrors([
                       'hata' => [
                         'Paylaşım bulunamadı',

                       ],
                       'success' => [
                         'Paylaşım bulunabilirdi hani :D ',

                         ]
                       ]);

Expected Output

The beautified code should have looked like this:

if ($posts->isEmpty()) {
            return back()
                     ->withErrors([
                       'hata' => [
                         'Paylaşım bulunamadı',

                       ],
                       'success' => [
                         'Paylaşım bulunabilirdi hani :D ',

                         ]
                       ]);

Actual Output

The beautified code actually looked like this:

if ($posts->isEmpty()) {
            return back()
                          ->withErrors([
                       'hata' => [
                         'Paylaşım bulunamadı',

                       ],
                       'success' => [
                         'Paylaşım bulunabilirdi hani :D ',

                         ]
                       ]);

Steps to Reproduce

  1. Add code to Atom editor
  2. Run command Atom Beautify: Beautify Editor
  3. This beautified code does not look right!

Debug

Here is a link to the debug.md Gist: https://gist.github.com/YarkinGulacti/2f9d0cd55bf3e7e9d88c0959ae8eb819

Checklist

I have:

SilentGlasses commented 1 year ago

If you still need this and are looking for something to fill the spot that Atom left, I am using Pulsar the successor to Atom... This package is working except for one deprecated error listed in #2605

If you don't need this anymore, can you please close this out so it's not just sitting there? Thanks