diff --git a/Elwig/Documents/DeliveryNote.cs b/Elwig/Documents/DeliveryNote.cs index e4a7885..4bc2325 100644 --- a/Elwig/Documents/DeliveryNote.cs +++ b/Elwig/Documents/DeliveryNote.cs @@ -138,7 +138,8 @@ namespace Elwig.Documents { foreach (var part in Delivery.Parts.OrderBy(p => p.DPNr)) { var sub = new Table(ColsMM(10, 21, 25, 19.5, 19.5, 30, 12.5, 12.5, 15), true) .SetWidth(UnitValue.CreatePercentValue(100)).SetFixedLayout() - .SetBorderCollapse(BorderCollapsePropertyValue.COLLAPSE); + .SetBorderCollapse(BorderCollapsePropertyValue.COLLAPSE) + .SetKeepTogether(true); int rowspan = 1 + (part.Cultivation != null ? 1 : 0) + 1 + part.Modifiers.Count() + 1 + (part.Comment != null ? 1 : 0) + (part.Temperature != null || part.Acid != null ? 1 : 0); sub.AddCell(NewDeliveryMainTd($"{part.DPNr:N0}", center: true))