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

Formatter add too many spaces #357

Open
Zehir opened this issue Feb 13, 2025 · 0 comments
Open

Formatter add too many spaces #357

Zehir opened this issue Feb 13, 2025 · 0 comments

Comments

@Zehir
Copy link

Zehir commented Feb 13, 2025

Hello, I just installed the toolkit and tried to use the formatter but for some reason he add to many spaces and parenthesis.

Before formatting I have

	steps.append_array([
		ExpeditionStepTravel.new(target_coords),
		ExpeditionStepGatherRessource.new(target_coords, 3.0),
		ExpeditionStepTravel.new(base_coords),
		ExpeditionStepTransfertItems.new(
			ExpeditionStepTransfertItems.Direction.DROPOFF,
			base_coords,
			[
				PandoricaCollectionOrder.new("raw_wood_log", -1),
				PandoricaCollectionOrder.new("raw_stone", -1),
			]
		)
	])

After I got :

	(
		steps
		. append_array(
			[
				ExpeditionStepTravel.new(target_coords),
				ExpeditionStepGatherRessource.new(target_coords, 3.0),
				ExpeditionStepTravel.new(base_coords),
				(
					ExpeditionStepTransfertItems
					. new(
						ExpeditionStepTransfertItems.Direction.DROPOFF,
						base_coords,
						[
							PandoricaCollectionOrder.new("raw_wood_log", -1),
							PandoricaCollectionOrder.new("raw_stone", -1),
						]
					)
				)
			]
		)
	)

I am not sure why he split the steps.append_array into 2 lines and add a space after the dot.
I used all default settings.

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

1 participant