Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1325

Unparse Padding when textStringJustification = "center" - extra char added to right instead of left.

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • 1.1.0
    • Unparsing
    • None

      According to the spec, "textStringJustification = 'center' adds equal padding chars left and right of the string contents if the string is too short... It adds one extra padding char on the left if needed."

      I wrote an unparser test for this, and it seems that the unparser is actually adding the extra pad character to the right of the string instead of the left.

      See test:
      unparseDelimitedPaddedString05
      in the following files:
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section13/text_number_props/TextNumberPropsUnparse.tdml
      daffodil-test/src/test/scala/edu/illinois/ncsa/daffodil/section13/text_number_props/TestTextNumberPropsUnparse.scala
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section13/text_number_props/TestTextNumberPropsUnparseDebug.scala

              twise Taylor Wise
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: