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

Wrapping doesn't kick in #572

Closed
Gama11 opened this issue Apr 11, 2020 · 1 comment
Closed

Wrapping doesn't kick in #572

Gama11 opened this issue Apr 11, 2020 · 1 comment
Labels
bug Something isn't working wrapping Incorrect or undesirable wrapping

Comments

@Gama11
Copy link
Member

Gama11 commented Apr 11, 2020

Describe the bug

The line has 140 characters, but wrapping never seems to kick in no matter how low the max line length is.

Input file

class PlayState extends FlxState {
	override public function create() {
		var text = new FlxBitmapText(FlxBitmapFont.fromMonospace("assets/tiny-font.png", FlxBitmapFont.DEFAULT_CHARS, FlxPoint.get(8, 8)));
	}
}

Optional: hxformat.json

{
	"wrapping": {
		"maxLineLength": 100
	}
}
@Gama11 Gama11 added bug Something isn't working wrapping Incorrect or undesirable wrapping labels Apr 11, 2020
AlexHaxe added a commit to AlexHaxe/haxe-formatter that referenced this issue Apr 11, 2020
@Gama11
Copy link
Member Author

Gama11 commented Apr 11, 2020

Hm, this line still doesn't seem to get wrapped (again with max 100):

class PlayState extends FlxState
{
	override public function update(elapsed:Float)
	{
		if ((sprite.velocity.x > 0 && sprite.x >= FlxG.width - sprite.width) || (sprite.velocity.x < 0 && sprite.x <= 0))
		{
			sprite.velocity.x *= -1;
		}
	}
}

@Gama11 Gama11 reopened this Apr 11, 2020
AlexHaxe added a commit to AlexHaxe/haxe-formatter that referenced this issue Apr 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wrapping Incorrect or undesirable wrapping
Projects
None yet
Development

No branches or pull requests

1 participant