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

Removes a space which should not be removed #36

Closed
Anoian opened this issue Sep 29, 2022 · 4 comments
Closed

Removes a space which should not be removed #36

Anoian opened this issue Sep 29, 2022 · 4 comments

Comments

@Anoian
Copy link

Anoian commented Sep 29, 2022

https://github.com/one-suedwest/onesw-website/blob/main/src/pages/index.astro

If you look at that file at line 73, astro-compress will remove the space between the "<HiddenField />" and "an"

You can just clone that project and run "npm run build" and then open the generated index.html and you will see the issue.

I did not investigate this further, so i am sorry for the bad bug description.

I made sure that the problem does not exist when removing compress() from the vite config, so i am pretty sure that the issue is with astro-compress.

@NikolaRHristov
Copy link
Member

NikolaRHristov commented Sep 29, 2022

Use an &nbsp; after />

<HiddenField
	prefixValue="+49 176 "
	suffixValue="70596308"
/>&nbsp;

@NikolaRHristov
Copy link
Member

This will be fixed in 1.0.9

@Anoian
Copy link
Author

Anoian commented Sep 30, 2022

Thank you :)

@NikolaRHristov
Copy link
Member

NikolaRHristov commented Sep 30, 2022

Fixed in 1.0.9 @Anoian

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

No branches or pull requests

2 participants