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

CSS source formatting issue with calc() - Eclipse double Source menu #1490

Open
KlaasBonnema opened this issue Mar 16, 2024 · 0 comments
Open

Comments

@KlaasBonnema
Copy link

KlaasBonnema commented Mar 16, 2024

Wild Web Developer HTML, CSS, JSON, Yaml, JavaScript, TypeScript, Node tools 1.3.3.202311211923

Eclipse 2024-03 (4.31.0) will show two Source top menu's while editing a CSS file.
Both menu's have items: Format, Toggle Line Comment, Add Block Comment, Remove Block Comment. The first of the Source menu's has additional items: Shift Left, Shift Right, Cleanup Document, Format Active Elements.
The listed shortcut for Format is Ctrl+Shift+F in both menu's.
There is also a Source->Format command in the documents context menu (right click).

When I use the Format command in the context menu or from the first Source menu (with the larger number of items) the formatting of calc( ) introduces an error by removing a space character.
height: calc(100lvh - var(--header-height) - var(--footer-height));
becomes
height: calc(100lvh - var(--header-height)- var(--footer-height));
which is invalid calc( ) syntax.

When I use the other Format top menu it will leave the space character as it should but it will not correct a missing space character that was taken out previously by the failing Format.

I cannot tell if this occurs using the WWD editor formatting or formatting by another Eclipse component.

Besides this formatting bug it seems there is something wrong with the integration of the Source top menu in Eclipse. There should be only one menu.

Please let me know if this issue should be reported elsewhere, and please tell me where.

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