Skip to content
New issue

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

Long text lines cause out of range exception in 3.0.0-beta #472

Closed
SteveGilham opened this issue Aug 30, 2019 · 2 comments
Closed

Long text lines cause out of range exception in 3.0.0-beta #472

SteveGilham opened this issue Aug 30, 2019 · 2 comments

Comments

@SteveGilham
Copy link

SteveGilham commented Aug 30, 2019

Description

In a multi-line string, if an individual line is longer than --pageWidth

The following exception occurs while formatting stdin: System.ArgumentOutOfRangeException: Non-negative number required.
Parameter name: totalWidth

happens in 3.0.0-beta, but didn't in 2.9.2

Repro code

Here's a link to an example using the online fantomas tool.

@nojaf
Copy link
Contributor

nojaf commented Aug 30, 2019

Hey, thanks for this. Could you try again?

@SteveGilham
Copy link
Author

That seems to have fixed it in the on-line tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants