Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-800

Support escaping characters in make-ldif templates

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Done
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.6.0
    • Component/s: tools
    • Labels:
      None

      Description

      The make-ldif template language currently does not easily support writing literal "

      {" and "<" characters (or "}

      " and ">" within a tag). It's possible to overcome this with creative use of certain tags (e.g. "<random:chars:{:1>'), but it seems like supporting an escape character would be a good idea.

      This patch makes backslash act as an escape character in make-ldif template files. It implements a new parsing phase, PARSING_ESCAPED_CHAR, which adds one following character to the buffer and then reverts to the previous phase.

        Attachments

          Activity

            People

            Assignee:
            ludo Ludovic Poitou
            Reporter:
            elliot.kendall@ucsf.edu elliot.kendall@ucsf.edu [X] (Inactive)
            Dev Assignee:
            Ludovic Poitou Ludovic Poitou
            QA Assignee:
            Christophe Sovant Christophe Sovant
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: