I've been using a Perl script that utilizes HTML::TextToHTML
to convert text into HTML.
Some of the text I'm working with contains quasi-tables where alignment is crucial.
For instance:
Job no Description Completed
15 Paving from NE 32 to 45th 11-01-17
Currently, I am employing the following code:
use HTML::TextToHTML;
my $conv = new HTML::TextToHTML();
if ( $HTML eq 'Y' ) { # convert entire body to HTML
$body = $conv->process_chunk($body);
}
However, in certain email clients, the spacing between lines seems to get distorted. Is there a method within HTML::TextToHTML
to maintain row width and alignment?