diff --git a/Sources/SwiftMathRender/MathRender/MTTypesetter.swift b/Sources/SwiftMathRender/MathRender/MTTypesetter.swift index c3ed19f..e13117a 100644 --- a/Sources/SwiftMathRender/MathRender/MTTypesetter.swift +++ b/Sources/SwiftMathRender/MathRender/MTTypesetter.swift @@ -43,7 +43,7 @@ func getInterElementSpaces() -> [[InterElementSpaceType]] { // Get's the index for the given type. If row is true, the index is for the row (i.e. left element) otherwise it is for the column (right element) func getInterElementSpaceArrayIndexForType(_ type:MTMathAtomType, row:Bool) -> Int { switch type { - case .ordinary, .placeholder: // A placeholder is treated as ordinary + case .color, .colorBox, .ordinary, .placeholder: // A placeholder is treated as ordinary return 0 case .largeOperator: return 1