Dear All,

Thank you for all your help I have now managed to solve my problems.

Thanks once again.


On Tuesday 30 November 2010 08:45 PM, Christian Riesen [via Zend 
Framework Community] wrote:
> Your output:
> <head>
> <title>Some title</title>
> <meta name="author" content="Catherine Jennings">
> <meta name="date" content="2010">
> <meta name="copyright" content="© Catherine Jennings 2010">
> <meta name="keywords" content="Poetic Tributes">
> <meta name="description" content="">
> </head>
>
> Your relevant script:
> <head>
> <?php echo $this->headTitle() . "\n" ?>
> <?php echo $this->headMeta() . "\n" ?>
> <?php echo $this->headLink() . "\n" ?>
> </head>
>
> Now what happens, if your script would look like this?
> <head>
> <?php echo $this->headTitle() . "\n" ?>
> <?php echo $this->headMeta() . "\n" ?>
> <?php echo $this->headLink() . "\n" ?>
> </head>
>
> I can predict the output:
> <head>
> <title>Some title</title>
> <meta name="author" content="Catherine Jennings">
> <meta name="date" content="2010">
> <meta name="copyright" content="© Catherine Jennings 2010">
> <meta name="keywords" content="Poetic Tributes">
> <meta name="description" content="">
> </head>
>
> To say it in Adam's terms: "There's your problem". Your white spaces
> before you call it, will stick in there.
>
> On Tue, Nov 30, 2010 at 3:15 PM, David Muir <[hidden email]
> </user/SendEmail.jtp?type=node&node=3065554&i=0>> wrote:
>
>  >
>  > IIRC, the \n at the end of each line is needed because php's closing tag
>  > gobbles any newline characters that immediately follow it.
>  >
>  > As for the extra space within the meta tag. It's probably a "bug" but
> not
>  > one that really matters. It's probably never been fixed because the
> output
>  > is still valid html, so there's not much point wasting resources
> fixing it.
>  > Feel free to report it as a bug if you or someone else hasn't already.
>  >
>  > Cheers,
>  > David
>  >
>  >
>  > navanitachora wrote:
>  >>
>  >> I have tried taking out the \n from each line that does not take of the
>  >> space <meta name="" content=""(space)>.
>  >>
>  >> Taking out the \n only makes the meta tags or whatever else start on
> the
>  >> previous line instead of the next line in this case the first meta tag
>  >> starts on the same line as the head tag.
>  >>
>  >> I have also tried putting $this->headTitle() $this->headMeta()
>  >> $this->headLink() all on the same line and still there is no change.
>  >>
>  >> Is this a bug in the rendering engine in just 1.10 or has this been
>  >> around for a while.
>  >>
>  >> Thanks for your help.
>  >>
>  >> On Tuesday 30 November 2010 06:59 PM, weierophinney [via Zend Framework
>  >> Community] wrote:
>  >>> -- navanitachora <[hidden email]
>  >>> </user/SendEmail.jtp?type=node&node=3065367&i=0>> wrote
>  >>> (on Tuesday, 30 November 2010, 02:43 AM -0800):
>  >>>
>  >>> >
>  >>> > Dear Christian,
>  >>> >
>  >>> > Thanks for your e-mail.
>  >>> >
>  >>> > My layout script is below:
>  >>> >
>  >>> > -------------------------------------------------
>  >>> > <!-- application/layouts/scripts/layout.phtml -->
>  >>> > <?php echo $this->doctype() . "\n"?>
>  >>> > <html lang="en">
>  >>> > <head>
>  >>> > <?php echo $this->headTitle() . "\n" ?>
>  >>> > <?php echo $this->headMeta() . "\n" ?>
>  >>> > <?php echo $this->headLink() . "\n" ?>
>  >>>
>  >>> You're essentially doing two line endings in the above -- the explicit
>  >>> "\n", as well as the \n after the closing ?> tags. Is that the extra
>  >>> space you're talking about? If so, just get rid of the '. "\n"' from
>  >>> each line.
>  >>>
>  >>> > </head>
>  >>> > <body>
>  >>> > <p>this is a paragraph</p>
>  >>> > </body>
>  >>> > </html>
>  >>> > -------------------------------------------------
>  >>> >
>  >>> > Hope that helps.
>  >>> >
>  >>> > Thanks.
>  >>> >
>  >>> > On Tuesday 30 November 2010 02:24 PM, Christian Riesen [via Zend
>  >>> > Framework Community] wrote:
>  >>> > > Hi
>  >>> > >
>  >>> > > It would help to see the actual code where you call it, say for
>  >>> > > example, your layout script. That already might contain what
> you are
>  >>> > > looking for.
>  >>> > >
>  >>
>  >>
>  >
>  > --
>  > View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Meta-tags-rendering-and-indentation-issues-tp3062357p3065447.html
> <http://zend-framework-community.634137.n4.nabble.com/Meta-tags-rendering-and-indentation-issues-tp3062357p3065447.html?by-user=t>
>  > Sent from the Zend Framework mailing list archive at Nabble.com.
>  >
>
>
> ------------------------------------------------------------------------
> View message @
> http://zend-framework-community.634137.n4.nabble.com/Meta-tags-rendering-and-indentation-issues-tp3062357p3065554.html
> To unsubscribe from Meta tags rendering and indentation issues, click
> here
> <http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3062357&code=bmF2YW5pdGFjaG9yYUBnbWFpbC5jb218MzA2MjM1N3wtOTk3MTY2OTg0>.
>


-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Meta-tags-rendering-and-indentation-issues-tp3062357p3065826.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to