The circuit breaker will be received and inspected for worn, damaged, and missing components.
Arc chutes will be removed and inspected for erosion
Contacts will be inspected for proper wipe and signs of deterioration.
The circuit breaker will be received and inspected
-Arc chutes will be removed and inspected for erosion
-Contacts will be inspected for proper wipe and signs of
-deterioration.
Because there is no "line feed" CHR(10) character at the begining of the first line of your text. CHR(10) characters are actualy *at the end* of each line, except for the last line as can be seen from your output.
Jurij Modic ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
select '-' || replace(WSTEXT,chr(10),chr(10)||'-')
from table1;
If there is any chance that there coluld be CHR(10) as the first character in the first line, you should use the following to prevent two consecutive '-' characters to appear in the first line:
select '-' || replace(ltrim(WSTEXT,CHR(10)),chr(10),chr(10)||'-')
from table1;
Jurij Modic ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
select REPLACE('-' || replace(ltrim(WSTEXT,CHR(10)),chr(10),chr(10)||'-'), CHR(10)||'--', CHR(10)||'-')
from table1;
Now your next question will probably be: What if there are allready two consecutive '-' characters at the beginning of a new line? And what if there are three? Four? ..... Well, for that you would have to write a rather simple PL/SQL function that will be able to eliminate any number of consecutive '-' characters from the beginning of each line in your text.
Jurij Modic ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
'-'||INPUT
-----------------------------------------------------------------------------------------------
-The circuit breaker will be received and inspected for worn, damaged, and missing components.
Arc chutes will be removed and inspected for erosion
Contacts will be inspected for proper wipe and signs of deterioration.
Bookmarks