Hi,
It's me again nitpicking about a small but annoying thing.
If I add a few Couch tag lines like this:
When the page gets processed by couch before it's sent to the client browser it probably removes the tags meant for it. As a trace when for example the code up gets processed and the tags removed Couch leaves behind an empty line.
I usually put the template stuff in the beginning of the php document and now when Couch leaves behind empty lines there will be empty lines before the doctype if you look the source of the page. This isn't a big thing as most browsers will just skip the empty lines but also it isn't a good practice.
Is there a reason why Couch leaves an empty line when it removes the tags from the final source?
It's me again nitpicking about a small but annoying thing.
If I add a few Couch tag lines like this:
- Code: Select all
<cms:template title='Home' order='1'>
<cms:editable name='main_image' label='Main image' type='image' />
</cms:template>
When the page gets processed by couch before it's sent to the client browser it probably removes the tags meant for it. As a trace when for example the code up gets processed and the tags removed Couch leaves behind an empty line.
I usually put the template stuff in the beginning of the php document and now when Couch leaves behind empty lines there will be empty lines before the doctype if you look the source of the page. This isn't a big thing as most browsers will just skip the empty lines but also it isn't a good practice.
Is there a reason why Couch leaves an empty line when it removes the tags from the final source?