diff --git a/setter.go b/setter.go index 610836b..6197a75 100644 --- a/setter.go +++ b/setter.go @@ -99,8 +99,11 @@ func (setter *TypeSetter) needAlignedLayout () { for index := range setter.lines { align := setter.align - if index == len(setter.lines) - 1 && align == AlignJustify { - align = AlignLeft + if align == AlignJustify { + except := + index == len(setter.lines) - 1 || + setter.lines[index].BreakAfter + if except { align = AlignLeft } } setter.lines[index].Align(align) }