senchalabs/cssbeautify — Issue #7: base64 beautification is broken
Author: patrickkettner
Created: 2012-02-07 18:55:34+00:00
State: open

The code automatically breaks new lines on semicolons

```Javascript
if (str.charAt(str.length - 1) === '}' ||
str.charAt(str.length - 1) === ';') {
formatted = str + '\n\n';
```

This means that inline base64 is broken upon beautification, since it contains a semicolon after the data type

```
body: { background-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)'}
```

becomes

```
body: {
background-image: url(data:image/gif;
base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)'
}
```