https://bz.apache.org/bugzilla/show_bug.cgi?id=69860

            Bug ID: 69860
           Summary: Data validation with explicit list of values should
                    trim the values
           Product: POI
           Version: 5.4.1-FINAL
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Excel takes a comma-separated list of values for list validation. Sometimes
people type a space after the comma, and Excel ignores it (and validates by the
trimmed values) but POI doesn't.
Relevant classes/methods: DataValidationEvaluator.isValidCell,
DataValidationConstraint.getExplicitListValues, DVConstraint.createDVConstraint

This seems to be done better in XSSF (see
XSSFDataValidationConstraint.LIST_SPLIT_REGEX, though it only trims around
commas? I haven't tested it) but not in HSSF.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to