Λύχνις Δαν Posted July 8, 2014 Share Posted July 8, 2014 (edited) Hi ya, Mac 10.4.3 on OSX 10.9.3. Working on an import project I am preprocessing the HTML. When I pretty print the output HTML, ready for import, and import it I can get an additional space. I believe this is because the carriage return of the pretty printing is converted to a space, or perhaps that the CR is breaking up one sequence of whitespace into two. As an example take this fragment of HTML. I doubt the <i> tag is relevant and it is stripped in either case. reprint of this <i>Introduction</i> would shortly This text results in an import of : reprint of this Introduction would shortly all neatly single spaced. This source fragment though : reprint of this <i> Introduction </i> would shortly results in this in the tool : reprint of this Introduction would shortly Note the pairs of spaces before and after the word Introduction. It is possible for pretty printing to produce unintended spaces to appear in a broswer rendering also. In that case though as a carriage return is handled as being essentially the same as whitespace there is only one space for something like this. But that case will result in a space where none was intended not two where one was. Tx D Edited July 8, 2014 by Daniel Semler Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now