fixedformat4j icon indicating copy to clipboard operation
fixedformat4j copied to clipboard

Don't trim the leading and trailing spaces while parsing into a String

Open abhinandanmadaan opened this issue 5 years ago • 1 comments

The spaces are being trimmed after the manager.load method parses the fixed formatted data. In my case, if the string contains only SPACES " ", it returns an empty String after parsing "". But my requirement is to retain those leading and trailing spaces.

For example: Input: "ABCDE " (Has 5 trailing spaces) Output: "ABCDE" (The spaces are trimmed) But my required output is: "ABCDE " (I want the output to retain the trailing spaces)

Is there a way this can be achieved with this library?

abhinandanmadaan avatar Apr 21 '21 06:04 abhinandanmadaan

x2

nwoswo avatar Jan 23 '23 17:01 nwoswo