Page Title outputting leading/trailing whitespace within H1 My Drupal 7 site is printing out leading and trailing whitespace and a line break within the page title &lt;h1&gt;. The following is an exact copy and paste of the HTML that's being delivered to the browser:

&lt;h1 class="title" id="page-title"&gt;
                I am a Page Title               &lt;/h1&gt;


Not too big of a deal as most browsers know to ignore whitespace... except Chrome for Windows... where it's making the last word in the page title wrap to the next line (I confirmed this by deleting the whitespace in Chrome's web inspector):



Why is it doing that? Is there a fix? I can think of a handful of ways to trim the the whitespace using Javascript (can it be done with CSS?), but I'd rather fix it at the source.
In the page.tpl.php file, the page title bit looks like this:

            &lt;h1 class="title" id="page-title"&gt;
                &lt;?php print $title; ?&gt;
            &lt;/h1&gt;


Simply removing the trailing/leading whitespace (tabs and new lines) from the code, did the trick:

            &lt;h1 class="title" id="page-title"&gt;&lt;?php print $title; ?&gt;&lt;/h1&gt;


&nbsp;



(Thanks to @sareed and @slawrence10 for the comments that jogged my memory as to how to deal with this!)