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

anahuacv’s picture

Component: User interface » Code
thekevinday’s picture

I think your solution is in this thread: #342722: Creating longer labels for questions .

anahuacv’s picture

Thanks 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.

thekevinday’s picture

Right, 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.

thekevinday’s picture

Issue summary: View changes

Added code tags.

danchadwick’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Closing 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.