Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

Word wrapping and line count in output

$
0
0

Team,


I want to apply word wrapping logic where expected Input data and Expected output data is as below.

My source data can or can't have more than 60 characters, carriage return. I want my output without carriage return

and in 60 charactre fixed width multiple line format.  



Input

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<CR>

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<CR>

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.<CR>

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


 

Output

1 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed

2 do eiusmod tempor incididunt ut labore et dolore magna

 

3 aliqua.

4 Ut enim ad minim veniam, quis nostrud exercitation ullamco

5 laboris nisi ut aliquip ex ea commodo consequat.

6 Duis aute irure dolor in reprehenderit in voluptate velit

7 esse cillum dolore eu fugiat nulla pariatur.

8 Excepteur sint occaecat cupidatat non proident, sunt in

9 culpa qui officia deserunt mollit anim id est laborum.


Viewing all articles
Browse latest Browse all 3719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>