Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-14604

RH294: ch05s03 - Regression on the Jinja2 templates content - RHT2317643

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • RH294 - RHEL9.0-en-4-20241107
    • RH294
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • 5
    • en-US (English)

      Please fill in the following information:


      URL: ch05s03
      Reporter RHNID: carias@redhat.com
      Section title: Deploying Custom Files with Jinja2 Templates
      Language: English

      Issue description

      This is a regression from the issue https://issues.redhat.com/browse/PTL-5053.

      The example that is given:

      {{ '{#' }} /etc/hosts line {{ '#}' }}

      The first line in the given example is not a Jinja2 comment. The text says that it will not be included in the final file, but that is wrong; it will be included in the final file because the beginning and the end of the comment block is escaped inside expression block and will be rendered as literal text.

      The correct first line in the given example would be:

      {# /etc/hosts line #}

              amarirom@redhat.com Antonio Mari Romero
              carias@redhat.com Carlos Arias
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: