Hm. I think this has to do with assumptions on how JEI is breaking up lines and accommodating them with spaces. I'm not sure if there's a proper solution to this as JEI just doesn't expose enough information so I need to make guesses. I'll keep this open in the mean time.