The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> How to Break line after a special character, How to Break line after a special character
Sachin Gupta
post Sep 14 2021, 08:25 AM
Post #1


Newbie
*

Group: Members
Posts: 15
Joined: 14-December 20
Member No.: 27,685



Dear All,

I have one HTML Script which generate a table and fields input from some database table. There is one field in my table name NC Details , i want whenever field input finds a special character like "-" . it should shift the rest of the text in new line.
Kindly be noted NC Details filed gets data from some application so user writes text there , here i am using HTML just to get the table design.
below is the code i am writing in NC Details field
[code]
<tr>
<td style="vertical-align: middle; background-color: #E1F8DA;"><span style="color: #333399; font-family: Cambria, 'Hoefler Text', 'Liberation Serif', Times, 'Times New Roman', 'serif'"><strong>NC Details</strong></span></td>
<td style="vertical-align: middle;" ><span style="color: #000000;"><strong>['NCDETAILS']</strong></span></td>
</tr>

['NCDETAILS'] is input field column name which gets data from application, Please advise
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Sachin Gupta
post Oct 13 2021, 12:31 AM
Post #2


Newbie
*

Group: Members
Posts: 15
Joined: 14-December 20
Member No.: 27,685



All right guys , i will try other way to achieve it most probably changing data on server side. Thank you so much for all the help ,throughout the process.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
Sachin Gupta   How to Break line after a special character   Sep 14 2021, 08:25 AM
Brian Chandler   Unless I'm missing something, you simply use ...   Sep 14 2021, 09:16 AM
Sachin Gupta   Unless I'm missing something, you simply use ...   Sep 14 2021, 11:49 PM
Sachin Gupta   Hello All, I have showed this to my management an...   Sep 21 2021, 12:27 AM
Brian Chandler   Hello Brian Chandler, Please don't just ask...   Sep 21 2021, 12:49 AM
Sachin Gupta   [quote name='Sachin Gupta' post='142491' date='Se...   Sep 21 2021, 01:19 AM
Brian Chandler   <div> @{items('Apply_to_each...   Sep 21 2021, 02:21 AM
Christian J   Possibly you could use the PRE element with linebr...   Sep 21 2021, 06:09 AM
Brian Chandler   Possibly you could use the PRE element with lineb...   Sep 21 2021, 06:31 AM
Christian J   CSS then: <td style="white-space: pr...   Sep 21 2021, 06:06 PM
Sachin Gupta   Hello Christian J, Thanks for looking into this ,...   Oct 4 2021, 03:25 AM
Christian J   <td style="white-space: pre-line;"...   Oct 4 2021, 05:53 AM
pandy   Yeah. AFAIK white-space: pre-line is well-supporte...   Oct 4 2021, 06:38 AM
Sachin Gupta   [quote name='Sachin Gupta' post='142602' date='Oc...   Oct 7 2021, 05:12 AM
Christian J   No, I was thinking of what you wrote in the first ...   Oct 7 2021, 05:48 AM
pandy   white-space: pre-line also needs to actually be us...   Oct 7 2021, 06:37 AM
Sachin Gupta   white-space: pre-line also needs to actually be u...   Oct 11 2021, 11:47 PM
Sachin Gupta   white-space: pre-line also needs to actually be ...   Oct 12 2021, 01:13 AM
pandy   In your first post above you use the white-space: ...   Oct 12 2021, 03:25 AM
Brian Chandler   It looks to me as though the OP originally wanted ...   Oct 12 2021, 04:04 AM
Christian J   It looks to me as though the OP originally wanted...   Oct 12 2021, 11:17 AM
Sachin Gupta   All right guys , i will try other way to achieve i...   Oct 13 2021, 12:31 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 11:45 AM