move the <pre> trimming code into its own module and use it both for html and
latex output


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1564993 13f79535-47bb-0310-9956-ffa450edef68