How could I add a break in a label? For instance, in a webform with a grid element I would like to have in Questions the following one:
1|Robin says warm summer days are the nicest. <br> Chris says cools autumn days are the nicest.
...
So, the question, when rendered, will look like:
Robin says warm summer days are the nicest.
Chris says cools autumn days are the nicest.
This makes sense if we take a look at the Options I need to use:
1|Only one of the statements is right
2|Both could have some rightness
3|One could not be more right than the other
4|One could be more right
Any help would be appreciated.
Comments
Comment #1
anahuacv commentedComment #2
thekevinday commentedI think your solution is in this thread: #342722: Creating longer labels for questions .
Comment #3
anahuacv commentedThanks for your suggestion. I have already looked into that thread but the problem is not the same, my labels are less than 256 characters. I need to have the label displayed in two lines rather than one, to do this I was asking to enable support for the "br" html tag in labels' text.
Comment #4
thekevinday commentedRight, but the solution to that issue is to allow for HTML labels.
That patch allows adding HTML to the label, which would be your BR tag.
Comment #4.0
thekevinday commentedAdded code tags.
Comment #5
danchadwick commentedClosing for lack of activity. I'm not sure what the 7.x-4.x branch does for this, but certainly you could override the theme function for grids.