We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. First of all, thanks for this library.
Maybe I'm doing something wrong, but this is not working for me:
import com.univocity.parsers.fixed.FieldAlignment import com.univocity.parsers.fixed.FixedWidthFields import com.univocity.parsers.fixed.FixedWidthParser import com.univocity.parsers.fixed.FixedWidthParserSettings val fields = FixedWidthFields() fields.addField("padding", 4, FieldAlignment.RIGHT, '0') .addField("text", 4, FieldAlignment.LEFT, ' ') fields.keepPaddingOn("padding", "text") val settings = FixedWidthParserSettings(fields) settings.keepPadding = true val parser = FixedWidthParser(settings) println(parser.parseLine("0000abcd")?.contentToString()) println(parser.parseLine("0000 ")?.contentToString())
I've tried with FixedWidthParserSettings.keepPadding and it doesn't working either
The output of this snippet results in:
[null, abcd] [null, null]
But it should be:
[0000, abcd] [0000, ]
Using dependency: com.univocity:univocity-parsers:2.8.4
The text was updated successfully, but these errors were encountered:
fixed bug reported on issue #405
1c5ff69
Thanks for reporting this. I've fixed it and released version 2.8.5-SNAPSHOT for you to check.
Thank you for using our parsers!
Sorry, something went wrong.
Thanks for reporting this. I've fixed it and released version 2.8.5-SNAPSHOT for you to check. Thank you for using our parsers!
It worked. Thank you so much!
jbax
No branches or pull requests
Hi. First of all, thanks for this library.
Maybe I'm doing something wrong, but this is not working for me:
I've tried with FixedWidthParserSettings.keepPadding and it doesn't working either
The output of this snippet results in:
But it should be:
Using dependency: com.univocity:univocity-parsers:2.8.4
The text was updated successfully, but these errors were encountered: