Jump to content

Do a Line Break Even with the Pre Tag ?


Recommended Posts

I am intending to do a line-break in a specific division and I do manage it, though in the second division I am using pre tags, because I need the submitted data to be as is.

 

Here is an example:

 

        <!--  The Contribution Description -->
        <tr>
            <td colspan="3"><div class="break_word"><p><?php echo $contribution_description; ?></p></div></td>
        </tr>
        
        <!--  The Separation Line -->
        <tr>
            <td colspan="3"></td>
        </tr>
        
        <!--  The Contribution -->
        <tr>
            <td colspan="3"><div class="break_word"><pre><?php echo $contribution; ?></pre></div></td>
        </tr>
        
</table>

 

I am wondering, how can I manage to still have the line-break working as in the first division, and still keep the pre tags intact?

Link to comment
https://forums.phpfreaks.com/topic/252914-do-a-line-break-even-with-the-pre-tag/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.