The license agreement that pop-ups up from the buy confirmation window is distorted. Upon viewing the source, it is noted that <br> tags have been inserted by the program.
Line breaks or carriage returns within the text that is entered into the license text box for each product are converted to HTML break <br> tags by AShop. If the auto convert line breaks feature was not used, line breaks in plain text would become joined and the result would be one long line of text.
For instance:
Line one of your license agreement.
Line two of you license agreement.
Without the auto convert line breaks feature, the lines would appear in a browser as one long line.
Line one of your license agreement.Line two of you license agreement.
HTML can be entered or pasted into the license text box to format the license agreement and include hyperlinks. HTML code typically has line breaks (carriage returns) between each line of code.
For instance:
<table>
<tr><td>Text within the table cell.
</td><tr>
</table>
The resulting text after PHP auto converts line breaks is something like this.
<table>
<br> <tr><td>Text within the table cell.
<br> </td></tr>
<br> <table>
The extra line breaks will obviously cause the resulting page to look different than intended and quite likely will cause the page to be severely distorted. The solution is to join the HTML code. This can be done by copying the HTML source code and pasting it into a text editor that has a "Join Lines" feature, such as NoteTab Pro or it can be done manually. The resulting code should look something like the following.
<table><tr><td>Text within the table cell.</td><tr></table>
Paste the joined lines of HTML code into the license text box and submit the changes.