GithubHelp home page GithubHelp logo

Comments (8)

ZachSaucier avatar ZachSaucier commented on May 26, 2024 1

This should be changed in 3b4c619. All no breaking spaces are allowed until use cases for removing some start showing up

from just-read.

ZachSaucier avatar ZachSaucier commented on May 26, 2024

I am doing this purposefully, though I'm open to discussion on whether or not to keep this functionality. I've come across some sites that use   for pseudo-margins/padding and thus wished to remove those.

Though I suppose it would be better to convert them to regular spaces if there's not another space around it. Is that the functionality you want, or are you asking for them to remain completely?

from just-read.

aseeon avatar aseeon commented on May 26, 2024

When there is one non breaking space i would just leave it "alone" and not convert it at all. When there are many non breaking spaces right next to each other i would do it like you do it now, and remove them. What do you think about that?

from just-read.

ZachSaucier avatar ZachSaucier commented on May 26, 2024

Maybe so. Do you have a (or several) website that you noticed this on? I'll look for the one(s) that I created the behavior based on

from just-read.

aseeon avatar aseeon commented on May 26, 2024

http://www.mp.pl/pacjent/pierwsza_pomoc/145496,udar-cieplny (but it's in Polish, sorry).
When you see the source of the article you will see how it is formatted. It tries to conform to the rules of written polish. For example "o tym" should never be broken in the middle to crate new line and that's why they have   in that place.

from just-read.

ZachSaucier avatar ZachSaucier commented on May 26, 2024

Polish uses it a lot, huh? :D

I'll update it to act as you suggest, though it'll likely be a day or two until it comes out because of the weekend.

Thanks for the report!

from just-read.

aseeon avatar aseeon commented on May 26, 2024

Maybe not a lot. But it does happen, especially when someone tries to format text according to print rules.

Thank's for quick reaction!

from just-read.

ZachSaucier avatar ZachSaucier commented on May 26, 2024

I came across a page that was using it as spacing. It had something like

<p>&nbsp;</p>

So, as of 857ee83 / 0.0.32, I remove all elements that only have &nbsp;s in them. Let me know if I broke something, haha

from just-read.

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.