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

Fix #19550 #19551

Merged
merged 1 commit into from
Jan 30, 2017
Merged

Fix #19550 #19551

merged 1 commit into from
Jan 30, 2017

Conversation

roblourens
Copy link
Member

Related to #17333, probably regressed by ed900e4

Need console.log('a\nb') to be rendered as multiline, but console.log({ 'a\nb': 'c\nd' }) to not be. So here, only skip the string height measurement if the variable has children (is an object/array) or has a name (is a prop of an object/array).

This is a hack, I think the newlines in the preview need to be escaped somewhere since they aren't now, and the property values need to go through here after being escaped, which much happen elsewhere.

Only skip the string height measurement if the variable has children (is an object/array) or has a name (is a prop of an object/array)
@mention-bot
Copy link

@roblourens, thanks for your PR! By analyzing the history of the files in this pull request, we identified @egamma and @bpasero to be potential reviewers.

@isidorn isidorn added this to the January 2017 milestone Jan 30, 2017
@isidorn isidorn merged commit fdc662d into release/1.9 Jan 30, 2017
@isidorn isidorn deleted the roblou/19550 branch January 30, 2017 13:17
@isidorn
Copy link
Contributor

isidorn commented Jan 30, 2017

@roblourens thanks a lot for the fix! This area needs to be improved so we avoid hacks like this in the future.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants