fix issue where color formatting text is leaking

See https://github.com/angular/protractor/issues/1131
Basically, jasmines sends back colored strings as:
```
\x1B[31mSome text\n\x1B[0mnew line
```

which gets formatted into

```
[color]Some text[/color]
[no color]new line[/no color]
```

However, if you simply add a new tag after the new line, the `\x1B[0m` appears before the text in the new line. This is not an issue if you are using console or something that process the `\x1B[0m` properly. But if the `\x1B[0m` is not process AND someone is using our tags are markers, then the `\x1B[0m` becomes concatenated with the info. 

This craziness basically append the tag only after the `\x1B[0m`.