Skip to content

Commit 12fc32d

Browse files
authored
Remove line break in horizontal layout FileInputs (#245)
When using horizontal layouts, the extra <br> is not needed for file inputs.
1 parent 5a51876 commit 12fc32d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap4/renderers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ def fix_date_select_input(self, html):
360360
return '<div class="row bootstrap4-multi-input">{html}</div>'.format(html=html)
361361

362362
def fix_file_input_label(self, html):
363+
if self.layout == "horizontal":
364+
return html
365+
363366
html = "<br>" + html
364367
return html
365368

0 commit comments

Comments
 (0)