Fog Creek Software
Discussion Board

Add a deliberate line break while posting FogBugz

How can I add deliberate line break when I am posting to the FogBugz script - scoutSubmit.php

I tried adding "\n" where needed, but it doesn't help. What should I do so that message is formatted properly.

This is what I want -
Line 1
Line 2
Line 3

So I do msg = "Line 1\n"+ "Line 2\n" + "Line 3\n"

But I get -
Line 1Line2Line3
in fogbugz. What do I do to introduce a line break?

- Manish

Manish Hatwalne
Wednesday, September 15, 2004

Use \r\n and it will work.

Michael H. Pryor
Fog Creek Software
Wednesday, September 15, 2004

*  Recent Topics

*  Fog Creek Home