Jump to content

[NOT A BUG] line breaks on order form


Recommended Posts

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.

Link to comment
Share on other sites

  • WHMCS CEO

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

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

  • WHMCS CEO

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated