This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21578 - non space break entity
Summary: non space break entity
Status: CLOSED WORKSFORME
Alias: None
Product: HTML.next
Classification: Unclassified
Component: default (show other bugs)
Version: unspecified
Hardware: PC All
: P2 enhancement
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-04 13:38 UTC by Claude Warren
Modified: 2013-04-04 20:21 UTC (History)
2 users (show)

See Also:


Attachments

Description Claude Warren 2013-04-04 13:38:31 UTC
I would like to see a non-space-break entity.  Consider it the inverse of the non-break-space entity.  Basically it provides a hint to the render engine that a line break may be inserted if necessary.

Consider the text "something/anotherthing" if the space to render the tag is narrower than the text it will be rendered as per overflow.

now, consider &nspb; (non space break) entity. "something/&nspb;anotherthing" would normally render as "something/anotherthing" but in cases where the text is too wide to fit in the space the render engine can insert a space after the slash effectively rendering it as if it were written: "something/ anotherthing"
Comment 1 Robin Berjon 2013-04-04 14:30:27 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:

   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: none
Rationale: Unless I'm mistaken, what you're looking for is U+00AD (SHY), which is available as ­. If no break is needed at that location, it doesn't render; if a break is needed then it breaks and renders a hyphen.
Comment 2 Claude Warren 2013-04-04 15:04:15 UTC
Very close and I can see using that is several places, thank you for pointing it out.  But what I was looking for was a break with no other notation (no hyphen)  In my previous example

"something/­anotherthing" would render as 

something/-
anotherthing

what I am looking for is 

something/
anotherthing
Comment 3 Robin Berjon 2013-04-04 15:07:52 UTC
(In reply to comment #2)
> Very close and I can see using that is several places, thank you for
> pointing it out.  But what I was looking for was a break with no other
> notation (no hyphen)  In my previous example

In that case you want U+200B zero width space (HTML: ​).
Comment 4 Claude Warren 2013-04-04 20:21:52 UTC
Exactly what I was looking for