Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19043

Template engine - completely ignore lines containing only a comment

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 4.6.0
    • None

    Description

      Hi,

      We recently made some updates to our template code for SEO purposes, mainly
      removing whitespace/empty lines, to display the start of our content within the
      first 100 lines of HTML.
      We found that line breaks after comments were not omitted, which resulted in
      our content being pushed further down the HTML source.

      An example:

      Line 1
      Line 2
      {*Line 3*}
      Line 4
      

      Produces this HTML:

      Line 1
      Line 2
       
      Line 4
      

      We think that lines that only have a comment should be completely ignored,
      including the line break, producing this HTML:

      Line 1
      Line 2
      Line 4
      

      Attachments

        Activity

          People

            unknown unknown
            helgesilset helgesilset
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: