Coder Social home page Coder Social logo

Comments (11)

mejibyte avatar mejibyte commented on September 26, 2024 2

I solved this in my fork with this patch: mejibyte@b5d042e

from beautifyruby.

phoet avatar phoet commented on September 26, 2024

the beautifyer also deletes newlines at the end of a ruby file. git does not like that very much.

maybe @CraigWilliams can point me to some place in the code where i can add configurations to handle that.

from beautifyruby.

CraigWilliams avatar CraigWilliams commented on September 26, 2024

I am getting an extra line at the end of the file now. Can you confirm this to be true for you?

from beautifyruby.

h0jeZvgoxFepBQ2C avatar h0jeZvgoxFepBQ2C commented on September 26, 2024

Works fine (line at the end not removed).

from beautifyruby.

h0jeZvgoxFepBQ2C avatar h0jeZvgoxFepBQ2C commented on September 26, 2024

But the ticket was originally for an option to keep empty lines in the code - and this is not implemented?

from beautifyruby.

kemallette avatar kemallette commented on September 26, 2024

+1 on this feature -- especially in .html.erb files. Thanks for the great work everyone. :)

from beautifyruby.

petrpacas avatar petrpacas commented on September 26, 2024

+1 for sure

Also, for some reason, the line at the end DOES get removed for me. Anybody here still has the issue?

from beautifyruby.

mtomov avatar mtomov commented on September 26, 2024

+1 Also have the issue with the end line DOES get removed. Thanks as well!

from beautifyruby.

NaldoColella avatar NaldoColella commented on September 26, 2024

+1 any news?

from beautifyruby.

mejibyte avatar mejibyte commented on September 26, 2024

+1. It looks like htmlbeautifier already supports this so it's just a matter of piping it in: https://github.com/threedaymonk/htmlbeautifier/blob/4f4fa8c293f42e5475370d3bd8595eec2f4171d0/lib/htmlbeautifier.rb#L18

Are pull requests for this welcome?

from beautifyruby.

benkoshy avatar benkoshy commented on September 26, 2024

@andmej why not pull request your feature? 👍 :)

from beautifyruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.