-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable word breaking for job names #725
Conversation
core » jenkins_main_trunk #693 UNSTABLE |
Jenkins » jenkins #28 ABORTED |
core » jenkins_main_trunk #799 FAILURE |
/** | ||
* Get a string that can be safely broken to several lines when necessary. | ||
* | ||
* This implementation inserts <wbr> tags into string. It allows browsers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a ;
here I think.
http://stackoverflow.com/questions/226464/soft-hyphen-in-html-wbr-vs-shy seems inconclusive. The |
Thank you for the review. You are right about the HTML. Using I will update the pull request accordingly. |
core » jenkins_main_trunk #803 UNSTABLE |
Rather than emit In which case there would be no reason for clients to escape anything; and
(This is all assuming that ZWSP is in fact a good replacement for |
It does look better, but can we assume we serve unicode? I will test it and create new PR, this one is cluttered. |
Emitting the raw Unicode character should be fine. By the way you should look into using soft breaking in
|
Here is what I found, after a bit of experimenting with Unicode characters:
|
to @jglick : String containing Sadly, I did not manage to find Unicode char that would allow line break, be ignored while searching and not appear in copied text. Not to mention we want this to work cross-browser. |
In that case we are back to |
I guess so. Unfortunately, this bring the ugly |
Right, because |
Replaced by #767 |
Fix for JENKINS-17030.
This implementation inserts "break-marks" explicitly as I was not able to come up with purely CSS solution. AFAIK,
word-wrap
andbreak-word
works only for elements having explicitly declared width.Whether to use
<wbr>
,­
or some other alternative is a subject of discussion.