Indentation - plain text
I have a problem with indentation in a plain text email.
Problem is that the text is dynamic and character widths vary depending on the font (fine with Monospacing fonts, but the likes of gmail and hotmail don't pick that up). So if i use something like StringUtils.rightPad(... still does not guarantee correct indentation.
For example, both of these lines are the same length before the "|" (text before | is dynamic):
Manufacturer's Serial Number: |1277011
Is there any solution to this other than formatting using html and css? That would mean rewriting a lot of code...
btw... the spaces i talked about before the "|" have been stripped out by this post... both strings were 50 characters in length.