srt_generator: Strip whitespace from <p>-Elements.
srt_generator: Strip whitespace from <p>-Elements.

Fixes a bug where subtitles won't show in mpv / ffplay (and probably
mplayer?) when subtitle text has too much whitespace.

To be more specific, the extra newline following the timestamp is the
problem.

RobbieClarken/ttmltosrt