Coder Social home page Coder Social logo

Tabs? about dedent HOT 4 CLOSED

dmnd avatar dmnd commented on July 21, 2024 7
Tabs?

from dedent.

Comments (4)

moll avatar moll commented on July 21, 2024 5

Presumably ignoring whichever wasn't at the start of the line would be sane behavior. :)

from dedent.

dmnd avatar dmnd commented on July 21, 2024 1

I don't use tabs, but PRs welcome. Though I wonder what the expected behaviour is when tabs and spaces are mixed.

from dedent.

adrianjost avatar adrianjost commented on July 21, 2024

Hi, I ran into the issue that this library still isn't supporting tabs. I did some research with the result that packages like outdent are handling tabs like a single space character. This makes the implementation really simple. In most cases there are no mixed spaces/tabs and if there are and we would handle tabs like spaces, we have an equally broken result as we would encounter with the current implementation (since spaces are trimmed, but tabs are still there).

I will try to implement this and open a pull request, if you are still fine with that @dmnd.

from dedent.

JoshuaKGoldberg avatar JoshuaKGoldberg commented on July 21, 2024

Fixed by #28! 🎉

I'll try to release a beta version soon. #36

from dedent.

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.