Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In theme_date_combo(), the fieldset's title is generated as follows:
'#title' => field_filter_xss(t($element['#title'])) . ' ' . ($element['#delta'] > 0 ? intval($element['#delta'] + 1) : ''),
When #delta is 0, the space after the title is unnecessary. The problem with this is that the fieldset title will not be empty even if $element['#title'] is empty. As a result, a seemingly empty <legend> tag will be rendered in the fieldset theme, which may produce an undesirable look.
I'm attaching a patch to address this.
Comment | File | Size | Author |
---|---|---|---|
#2 | extra_space_in_data_combo-2377623-2.patch | 682 bytes | glekli |
Comments
Comment #1
glekli CreditAttribution: glekli commentedComment #2
glekli CreditAttribution: glekli commentedComment #3
qzmenkoI confirm the problem. The patch helped me. Thanks.
Comment #5
vijaycs85Thanks!