Bug Report – space tag inserted

  • Unknown's avatar

    Here’s a little bug that’s been whacking some of my article titles. For example, see this page:

    https://nuke-ban.org/2020/01/16/a-revolutionary-solution-to-a-revolutionary-threat/

    If you look at the source, you can see that WP is inserting an html space tag between “Revolutionary” and “Threat”. This makes WP think the resulting string is one long word, and so it puts “Revolutionary Threat” all on one line, which turns the title formatting in to kind of a mess.

    This has happened more than once, and I’ve reported it more than once too.

    It’s not crisis, but given the vast scale of the WP universe, a fix is probably warranted. I’m a programmer myself (perl not php) and know it’s not a hard thing to fix.

    Thanks for sending this bug report to the appropriate parties. Appreciate it.

    The blog I need help with is: (visible only to logged in users)

  • Hi, is it always being inserted before the last word in a title? If so, that’s intentional:

    No Orphans in Titles

    Generally it should make your titles look better, but if they’re looking bad on some devices, let us know which ones and we’ll see if we can help you come up with a fix. Just add screenshots to your media library and update us here with details on what you’d like to see instead.

  • Unknown's avatar

    Just look at the post I linked to, example is there. Look at the source, you’ll see the inserted html space tag.

    It’s a bug. Not a huge problem, but definitely a bug. Ok, maybe an intentional bug? But still, a bug. Just look at the title on the linked page. The formatting is FUBAR (a mess).

    I might be able to fix it by going in to the HTML editor, but I thought I’d leave the bug for now so you guys can see it.

    FYI, I’ve coded my own blog network software from scratch.

  • Unknown's avatar

    Quick follow up: This bug can not be fixed in the HTML editor, as best I can tell. The title section of the HTML editor doesn’t give access to the code, so the offending HTML space tag can not be removed. If I’m missing something here, happy to be corrected.

    So, I’ll just look like a dufus with my wacky titles, and blame it all on WP.com. :-)

    And don’t forget, my new site gets as many as 2 visitors a day (yes! that many!) :-) so the damage to the WP brand is going to be massive.

  • Hi there,

    A bug is when something is not working as it should, and that non-breaking space is being inserted intentionally to prevent a single word from the title breaking to the next line, so it’s doing exactly what it’s supposed to. This is a standard practice in typographic design on the web – a single word from a sentence or title appearing on its own line is called an “orphan”, and it’s considered poor design to allow that to happen.

    This is by design, and there is no way to prevent it from happening, as this is only added at the moment when a browser loads your site, and will vary based on the size of the screen on which your site is being loaded.

    The formatting is FUBAR (a mess).

    Can you provide some more detail on this? Looking at https://nuke-ban.org/2020/01/16/a-revolutionary-solution-to-a-revolutionary-threat/ I don’t see anything I would classify as a formatting problem. Here’s how your title displays to me:

    A Revolutionary Solution To A Revolutionary Threat Nuke Ban org

    It might help if you can take a screen shot of what you’re seeing. Upload it to your media library at My Site ->Site ->Media, and we’ll be able to see it there.

    Can you also let us know on what type of device and at what screen size you’re seeing the issue?

  • Unknown's avatar
  • Thanks for the screen shot. That should not be happening.

    Can you please also tell us on what type of device, what browser, and what screen size you’re seeing that?

  • Unknown's avatar

    Thank you for acknowledging that. In return I agree that a poorly implemented feature is not the same as a bug, and that my language was imprecise. And, that this isn’t a huge deal.

    Chrome 70
    Mac – el Capitan
    1600 x 900

    Best I can tell, the solution here is to remove the inserted HTML space tag, and that doing so may make one person happy while annoying another.

  • I don’t see any issues with the title on that post with my browser window sized to 1600×900. I checked in Chrome, Firefox and Safari, and on all it looks like in the screen shot I gave above.

    Can you please take a screenshot of the entire page for me, not just the post title?

    Have you checked if this happens for you across browsers, or does it only happen in Chrome? Do you have any zoom settings applied in your browser?

    Removing that non-breaking space is not an option – as I mentioned above this is a standard practice in typographical design, and this is implemented across all WordPress.com sites, so disabling it will affect millions of sites.

    But if you’re willing to work with me so I can figure out how to replicate what you’re seeing, we might be able to determine the cause and fix whatever is happening on your end.

  • Unknown's avatar

    No offense, and thank you for your responses, but I’m not interested in “the user is always wrong” blame shifting. It’s not that big a deal, let’s drop it and move on.

  • Hi there,

    It would be really helpful if you could provide the screenshot that @kokkieh asked for, as well as letting us know if this is happening on other browsers installed on your computer.

    Thanks!

  • The topic ‘Bug Report – space tag inserted’ is closed to new replies.