mtk Posted May 20, 2011 Share Posted May 20, 2011 hey, after upgrading to v4.5, all product descriptions are displayed with extra <br> on every line - although in DB they were unchanged from pre-upgrade. this is regardless of the template chosen. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted May 20, 2011 WHMCS CEO Share Posted May 20, 2011 This is an intentional change in 4.5. You will no longer need to put the actual HTML tags into your description for line breaks. So if you're using line breaks already, just need to remove those. Matt 0 Quote Link to comment Share on other sites More sharing options...
mtk Posted May 20, 2011 Author Share Posted May 20, 2011 is this written somewhere? is there still a way to add links (URL) and LI (lists) to the product description...? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted May 20, 2011 WHMCS CEO Share Posted May 20, 2011 Yes of course, HTML is still allowed like before, just you don't need it for line breaks. Matt 0 Quote Link to comment Share on other sites More sharing options...
mtk Posted May 20, 2011 Author Share Posted May 20, 2011 let me try to explain myself better: I do not have any <br> (nor I want any) in my HTML description, and yet a BR tag is added on the displayed page. I have a simple UL-LI list, which BR tags are somehow injected between the tags. i.e, this simple list: <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li> </ul> is generated as this HTML code: <ul><br> <li>item 1</li><br> <li>item 2</li><br> <li>item 3</li><br> </ul><br> 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted May 20, 2011 WHMCS CEO Share Posted May 20, 2011 This is designed to make things easier. You have line breaks in your description so you're getting line breaks in the output. If you don't want line breaks you would simply put it all on one line <ul><li>item 1</li><li>item 2</li><li>item 3</li></ul> Matt 0 Quote Link to comment Share on other sites More sharing options...
milla247 Posted May 23, 2011 Share Posted May 23, 2011 still should put an option IMO to enable them or disable them 0 Quote Link to comment Share on other sites More sharing options...
nxds Posted May 26, 2011 Share Posted May 26, 2011 There is a bug in that the widgets don't put any line breaks in output. I took out the <br>'s in my product descriptions so the order form didn't have double spacing, but now in my main site where I use stuff like <script language="javascript" src="/widgets/productsinfo.php?pid=2&get=description"></script> there are no line breaks at all. Can't have it both ways. Can we get a fix please? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.