Line breaking with javascript

This example shows how you can add line-breaks to text that does not wrap automatically.

Read the article

Without line breaking

boo.hoo.StackTrace$FirstNested$SecondNested.[init](StackTrace.java:267)
at boo.hoo.StackTrace$FirstNested.[init](StackTrace.java:256)
at boo.hoo.StackTrace.[init](StackTrace.java:246)
at boo.hoo.StackTrace.main(StackTrace.java:70)

With line breaking

boo.hoo.StackTrace$FirstNested$SecondNested.[init](StackTrace.java:267)
at boo.hoo.StackTrace$FirstNested.[init](StackTrace.java:256)
at boo.hoo.StackTrace.[init](StackTrace.java:246)
at boo.hoo.StackTrace.main(StackTrace.java:70)