eclipsesource / eclipsesource/tabris-js

console.log statements should apply same formatting as browser

Open
#1,473 0 comments 0 reactions 0 assignees View on GitHub
feature js
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

### Problem description

Log statements apply spaces inside curly brackets when printing js objects.

![image](https://user-images.githubusercontent.com/73655/29511197-ba0f22dc-865e-11e7-9e74-7915d45920b0.png)

### Expected behavior

Spaces should not be applied inside curly brackets similarly to the browsers log statments.

![image](https://user-images.githubusercontent.com/73655/29510986-f933ea70-865d-11e7-8485-44b6fde1ccf7.png)

### Environment

- Tabris.js version: nightly (2.1 with updated console print functionality)

### Code snippet

```javascript
console.log({hello: 'world'});
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.