Handle interrupts in table row

This commit is contained in:
Alex Coco
2024-08-15 11:56:29 -04:00
parent fb6634f454
commit 9067e5167a
2 changed files with 54 additions and 0 deletions
+6
View File
@@ -65,6 +65,12 @@ module Liquid
super
output << '</td>'
# Handle any interrupts if they exist.
if context.interrupt?
interrupt = context.pop_interrupt
break if interrupt.is_a?(BreakInterrupt)
end
if tablerowloop.col_last && !tablerowloop.last
output << "</tr>\n<tr class=\"row#{tablerowloop.row + 1}\">"
end