-
Notifications
You must be signed in to change notification settings - Fork 863
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
fixes #7996 - space after comma (css) #8051
base: master
Are you sure you want to change the base?
Conversation
The issue was, that multiple rules in breadcrumbs are better readable if there is an additional space between them. In your screenshot it's not. E.g. .rule,.rule2 Like the issue described. |
Ok, I thought your problem was, that the rendering was
with only the first one visible. Then I suggest to indeed push this down into the css module as that is a general problem in the structure scanner there. As you can see in my screenshot, the same issue is present in the navigator view. Given the origin of the two trees is the same it is not to surprising. |
The structure parser delivers the list of rules separated by a linefeed like in the editor view and the breadcrumb module simple removes this linefeed with no addition (displayed as HTML I suppose), hence no space between the rules in the list. The same problem is within the navigator view. I am not familiar with the structure scanner. So how should this rule list delivered so that all displaying parts still work. Now it's quite convenient because it's just a string. So wouldn't it be the easiest way to simply do the same change in the node factory for a css file? |
Well kind of. The intermediate structure we need to focus on is the |
Those CSS rule names were separated by a linefeed
.css_one,
.css_two {
}
The linefeed was not displayed and since breadcrumbs are displayed in a single line, it transformed to
.css_one,.css_two
.So this PR simply replaces linefeeds with a space.