Removal of Blank Line

hi,
I have an issue here. We have a field with VARCHAR2 data type.
This field can have value like this:
====================================
YOUR SWIFT XXXXXXX UNDER A.M L/C
PLS NOTE THAT DOCS. NOT PRESENTED YET
BUT WE SENT INQUIRY TO REIMBURSING BK
TO CONFIRM THAT THEY HOLD REIMBURSMENT
AUTHORITY TO HONOUR OUR CLAIMS FOR AMT
OF COMPLYING DOC. WHICH WILL BE PRESENTED
TO US AS PER L/C TERMS KINDLY INSTRUCTE
THEM TO HONOUR OUR CLAIMS QUOTING OUR REF.
LOC1435 UNDER ADVISE TO US
THANKING YOU INADVANCE FOR YOUR KIND CO-OPERATION
REGARDS
==========================================
if you notice, you will find two blank lines after first two lines. I would like to remove the blank line and move the next line up.
Please advise.
Regards
Nanjunda

If you are under 10g :
SQL> select mycol from mytable;
MYCOL
YOUR SWIFT XXXXXXX UNDER A.M L/C
PLS NOTE THAT DOCS. NOT PRESENTED YET
BUT WE SENT INQUIRY TO REIMBURSING BK
TO CONFIRM THAT THEY HOLD REIMBURSMENT
AUTHORITY TO HONOUR OUR CLAIMS FOR AMT
OF COMPLYING DOC. WHICH WILL BE PRESENTED
TO US AS PER L/C TERMS KINDLY INSTRUCTE
THEM TO HONOUR OUR CLAIMS QUOTING OUR REF.
LOC1435 UNDER ADVISE TO US
THANKING YOU INADVANCE FOR YOUR KIND CO-OPERATION
REGARDS
SQL> select regexp_replace(mycol,(chr(10)||'{2,}'),chr(10)) from mytable;
REGEXP_REPLACE(MYCOL,(CHR(10)||'{2,}'),CHR(10))
YOUR SWIFT XXXXXXX UNDER A.M L/C
PLS NOTE THAT DOCS. NOT PRESENTED YET
BUT WE SENT INQUIRY TO REIMBURSING BK
TO CONFIRM THAT THEY HOLD REIMBURSMENT
AUTHORITY TO HONOUR OUR CLAIMS FOR AMT
OF COMPLYING DOC. WHICH WILL BE PRESENTED
TO US AS PER L/C TERMS KINDLY INSTRUCTE
THEM TO HONOUR OUR CLAIMS QUOTING OUR REF.
LOC1435 UNDER ADVISE TO US
THANKING YOU INADVANCE FOR YOUR KIND CO-OPERATION
REGARDSNicolas.

Similar Messages

  • How do I remove a blank line in a pdf with  adobe pro XI?

    How do I remove a blank line in a pdf with adobe pro XI?
    Can I combine text blocks into one paragraph that are now given line by line?
    Is there a way to add a paragraph to an existing pdf and have the remaining text flow to the next pages?

    You can't, no, and no. Acrobat is not a word processor, and trying to use it as if it is will lead to enormous frustration and disappointment. Maybe you need to convert this document to Word if you want to do this sort of editing, but don't expect fancy layout to be preserved.

  • How to remove the blank lines at the end of the JTextArea .

    Hi,
    I need to remove the blank lines in the JTextArea at the end. Suppose i am giving 'A' in the first line and press the enter key two times, after i am giving the 'B' in the third line and press enter key for two times. I need to remove, the last two lines of JTextAreae, . How i can remove these lines?

    String#trim() removes all whitespace from both ends of the String.
    The requirement was to remove line breaks from the end of the String only.
    String#replaceAll with a suitable regex would do the trick. Untested regex for this:text.replaceAll("[\\n\\r]+$", "")db

  • How do I remove a blank line in the tool bars area?

    I have a blank line between a couple of the lines in the toolbar area(Between the back/forward/home/reload line and the Googlebar Lite line. How can I remove this extra blank line/space?

    This issue can be caused by an extension or plugin that isn't working properly.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • Unable to remove the "blank" line at the end of the file

    Hi Experts,
    My requirement is to send data in 'Binary' form as an attachement to a mail address. I have followed as below.
    Converted data into Binary form using the FM 'SCMS_TEXT_TO_BINARY'
    Call FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send mail.
    Until this point, all works fine and I receive a text file as well. Howvever, a blank line gets appended at the end (after last line) of the file. Please let me know, how I would get rid-off this empty line. Please refer attachment.
    Thanks in advance !

    Thanks Manish.
    I have resoved the issue, following steps have been incorporated.
    1. Find the output length of the file from the exporting parameter(output_length) of the Function module 'SCMS_TEXT_TO_BINARY'
    2. Pass the output length to DOC_SIZE component to the second line of the itab packing_list of function module 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    3. Pass the output length to DOC_SIZE component to document_data of function module 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    So there it is, the blank line is gone....
    Regards,
    Umar Ali

  • How to remove blank lines in the end of list .

    hi,
    in a complex report ,when there are only 20 pages,and linecount is 65(2) ,in the last page only 27 lines are filled and data is completed.then blank lines are printing from 27th line to 63 line.then end of page is triggering.
    so plz help me how to remove the blank lines here and immediately print the endof page.

    Hi,
    will this work for you.
    SET BLANK LINES OFF.
    These statements allow you to specify whether you want to output blank lines or not. Use SET BLANK LINES ON to output blank lines or SET BLANK LINES OFF to suppress them.
    Regards
    Viswanath Babu

  • Remove blank line after File Content Conversion

    I have a File>Conversion on PI7.0 (SP10).
    It seems to add a blank line. The XML is:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:EPIWCountFile xmlns:ns0="urn:com.somewhere.overthere.nothere">
      <Personal_Area>LU</Personal_Area>
    - <detail>
      <recordCount>17</recordCount>
      </detail>
      </ns0:EPIWCountFile>
    The conversion is done:
    recordset Structure=detail,
    name=detail.fieldseparator    ,
    The output file is
    17
    Hopefully you can see the blank line before the number!???
    I have changed the contexts while processing, and played with other options, but it always adds a blank line at the begin.
    All this file is a count of the number of records processed.  (The personal_area is for a variable name for file/folder creation)
    How can I remove the blank line, as the target system fails due to this anomaly?

    If you are in a development environment, try this
    Make your target structure
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:EPIWCountFile xmlns:ns0="urn:com.somewhere.overthere.nothere">
    - <detail>
    <b><Personal_Area>LU</Personal_Area></b>
    <recordCount>17</recordCount>
    </detail>
    </ns0:EPIWCountFile>
    Content conversion parameter
    detail.fieldFixedLengths 0,2
    detail.fixedLengthTooShortHandling Cut
    P.S: If you need <Pesonal_Area> tag only for File/Folder Name, then why dont you use Adapter specific Identifiers to achieve the same.
    Regards,
    Jai Shankar

  • Printing blank lines in IE 8, 9, 10 and 11 differs

    We have Credit Reports that are put in Iframe (and hidden fields) and when the users checks which ones they want to print, we take the hidden fields an populate one Iframe to print them all from.
    Problem is, IE 8 prints fine, IE 9 removes many of the blank lines that used to be there and IE 10 pretty much removes all blank lines.  IE 11 seems to work ok though.
    While IE 8 is being deprecated, IE 9 & 10 are still our majority users and am I trying to find a solution for them.
    Is there something other than an iframe I should be using?
    Here is the code:
    for(count=0; count <= intCounter; count++)
    vartabChecked = $get(printTab[count]);
    if(tabChecked.checked ==
    true)
    varhdnPrintFieldName =
    "hdnPrintFieldName"+
    count;
    vardoc = document.getElementById(hdnPrintFieldName);
        appendReports = appendReports + doc.value;
    varprintDoc = appendReports;
        parent.iframeprint.document.open();
        parent.iframeprint.document.write(printDoc);
        parent.iframeprint.document.close();
        parent.iframeprint.focus();
        parent.iframeprint.print();
    The report even looks different in the presented iframe (tabbed) in the various IE versions, though sometimes not exactly the same as the printed version in the same IE.
    Cliff

    Hi,
    IE8 doesn't understand textNodes that are white space. the firstChild property is affected by any white space preceeding the Node.
    use
    &nbsp;<br/>
    instead of
    the above is a blank line.. (white space).
    ensure that your external stylesheet links have a media attribute. Normally one would use a print only stylesheet (media='print') to show/hide visual elements when printing.
    eg.
    @media='print'{
    #divCopyright{
    display:block;visibility:visible;}
    @media='screen'{
    #divCopyright{
    display:none;visibility:hidden;}
    Post questions about html, css and scripting for website development to the IE Web Development forum.
    http://social.msdn.microsoft.com/Forums/ie/en-US/home?forum=iewebdevelopment
    Include with your questions a link to your website or a mashup that shows the issue.
    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
    raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us
    Rob^_^

  • Unwanted Blank line appearing in the output

    Hi all,
    we are trying to print the line items of a Order.
    There is no issue in first page. But in second page, after prinitng the first record...a blank line is coming followed by the second record.
    Now, we need to remove this blank line.
    There is a check box at the end of each record and the field which is prior to this check box has got offset. Tried to remove this offset and check...but it didn't work.
    As the first page output is perfectly fine and the issue is with the second page ( output has got 2 pages in total ), I believe
    something has to do with the page break setting.
    Any inputs on this would be of great help.
    Thanks in advance,
    Narayan.

    Could be caused by many reasons.
    Is the paragraph format set to skip a line the first time it is printed (SPACE AFTER setting)?
    Is the data causing it to overflow across the line?
    Is there a line feed in the actual SAPscript (like a "/" paragraph format)?

  • Blank line in xml publisher report -

    Hi Friends,
    There is one issue in xml publisher report. Its an rdf based xml report
    In header section it used to display customer address details. like below
    address1
    address2
    address3
    city state province postal_code
    country
    If address2 is NULL, it prints a blank line in between the total address. Need to avoid blank line and print address3 in address2 position.
    How can i remove the blank line? Finally there shouldn't be any blank spaces or lines.
    Any idea? Plz post here.
    Thanks & Regards,
    Arun Peddi

    Use a conditional region around the Address2. Your if statements could look something like this.
    <?if:FIELDNAME!=''?><?FIELDNAME?><?end if?>Have the if statement start at the end of ADDRESS1 and endif at the begining of ADDRESS3.
    Richard

  • How to skip blank line (EOF char) at the end of the file while creating ?

    Hi,
    In my program I have to create a file in Text mode using OPEN DATASET statement. This file is being sent to a third party system for their processing. I came to know while creating the file using OPEN DATASET, one LF character is inserted end of the file resulting a blank line end of the file. Thus if my internal table contains 5 reocrds, in the created text file I can see 6 lines where last is a blank. My question is how to remove this blank line which is causing issue in the thirdparty system.
    Here is the Code I have used.
       TRY.
    Write the file in Text Mode
            OPEN DATASET lv_outpf FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE
                                 WITH SMART LINEFEED
                                  MESSAGE lv_msg.
            IF lv_msg IS NOT INITIAL.
              WRITE / lv_msg.
              EXIT.
            ENDIF.
            LOOP AT itab_new INTO st.
              TRANSFER st TO lv_outpf.
            ENDLOOP.
            CLOSE DATASET   lv_outpf.
          CATCH cx_root.                                    "#EC No Handler
        ENDTRY.

    an effective way to do it:
    open your dataset in binary mode, transfer the records but between each record transfer the LF (or CRLF according to your need)
    after the last record you don't transfer the LF

  • How do you force source formatting to leave blank lines in CS6?

    I inherited some code with paragraph breaks between some lines so that there's a blank line between two lines of code.  When I Apply Source Formatting, the original blank lines remains, but when I insert a blank line & then Apply Source Formatting, the blank lines I inserted disappear.
    I showed the hidden characters and found that on the lines that remain blank, there are 4 spaces & a paragraph marker.  When insert the same thing, source formatting still removes my blank lines, but keeps the ones that someone else inserted (while not using DW) by adding 4 spaces & a paragraph marker.
    Is this behavior due to opening a file that was created outside of DW?  Is there anyway to get source formatting to leave my inserted blank lines alone?
    Thanks!

    That worked: I want to be able to preserve blank lines when I apply source formatting, not get rid of them.  I copied the lines that didn't disappear & they were also preserved wherever I copied them in my doc. 
    It would be nice to know what that hidden character is that prevents the blank line from being removed, but I guess I can't tell with DW. 

  • Blank line in receiver file adapter content conversion

    Hi,
    I am using a receiver file adapter. Everything is working fine. Except that a blank line is put by the file adapter between each records. It is a flat file format.
    I have used the stting below. How do we remove the blank line?
    Recordset : ACCTHDR,BATCHDR,TRANSREC,BATCHTLR,FILETLR
    ACCTHDR.fieldFixedLengths 1,7,4,9,8,665
    ACCTHDR.absoluteRowWidth  694
    ACCTHDR.addHeaderLine 0
    Thanks
    Sachin K

    Hi,
    .endSeparator
    The default value is a line break (no explicit separator after the last column; instead the structures are arranged line-by-line).
    If you enter a character string here, the system adds it to the last column as a closing character. You can also make this specification in addition to NameA.fieldFixedLengths. To include a line break following the closing character, you must explicitly define it by attaching ´nl´ (including the quotation marks) to the string.
    Regards
    Agasthuri Doss

  • Blank lines while printing Address

    Hi,
    We are facing an issue in smartforms w.r.t address display.
    We are passing address number which will get all the fields relevant for displaying, but a blank line is coming between two fields for the same address number( Say the fields are "Street/House No" & "PostalCode/City") which should not come.
    In Scripts, we can remove this using the option "No Blank Lines". Is there anything similar to that in forms?
    Please provide solution if you have any for this.
    Thanks in Advance,
    Anand Raj Kuruba.

    Use program lines and write your conditions to remove the blank lines.
    rgds,
    sairam

  • Extra blank lines in source code

    I have built a website in Dreamweaver CS4 and have a client editing pages in Contribute CS5. Both of us are working on Windows 7, and the site is hosted on Linux. When she makes edits to the page, something is introducing a GAZILLION blank lines in the source code. A typical page for this site is about 380 lines of code. The problem page is now more than 310,000 lines code with 100-200 blank lines between every "real" line of code. What the...?!
    I need to know how to stop this and how to remove the blank lines from the source code using Dreamweaver.
    The page in question lives here: http://www.alexandercitychamber.com/member-category.html
    HELP!!!
    Jeff

    Hello, Diane -
    We've got two separate issues here, but I think we have the solution to both.
    1. How to stop Contribute from adding blank lines in the code, and
    2. How to clean up a GAZILLION lines of blank code in a document.
    First, Number 1. I assume you're working in Dreamweaver. If not, I'm not sure how to guide you. But, when you define a Contribute Site, there is an area to specify administrative roles and permissions. Under each Role, at the bottom, you will see a popup for what kind of server the site is hosted on. The default is Windows. I had to change this to Unix (Linux) to match the hosting of our problem site. Find out what platform your host is using. You will have to specify this under each admistrative Role. After doing this, I had the client make some edits, then I opened the files in Dreamweaver. No new blank lines. I admit, I still have my fingers crossed somewhat.
    Okay, now how to clean up your source code and remove blank lines. A developer friend found this on some forum I had not seen. I don't know where, but I am grateful to the person who wrote it. It didn't get all the blank lines in my files, but I think some of the others, which I removed manually, were probably from the client pasting content in from Word. Here's what to do:
    1. Open the file in Dreamweaver
    2. Click CTRL + F, or go to EDIT > FIND AND REPLACE
    3. Select "Current document" in "Find In" (You can also select the folder if you have multiple files.
    4. Search in "Source Code"
    5. Check the box labeled "Use regular expression"
    6. Type "[\r\n]{2,}" (without quotes) in "Find"
    7. Type "\n" (without quotes) in "Replace"
    8. Press "Replace All"
    The operation chugged for a few minutes with my 301,000-line document. Yours may a take a little longer, but it did work. Good luck!
    Jeff
    [email protected]

Maybe you are looking for

  • How to Move a Video File from Movie Section to "TV Shows" Section

    I have an Ipod classic, and am trying to figure out how to move a video file from the "Movie" section to the "Tv Shows" section. I have Itunes version 1.3 which for my device is listed as the most current version.

  • Powerbook G4 sounds like it may explode - failing hard disk?

    Last night during a World of Warcraft adventure, my trusty Powerbook of about four years started making a noise something like a small, accelerating race car. As far as I can tell, the sound was coming from the upper left area of the laptop. In a pan

  • New aebs and airport utility won't recognize my (2) airport express'

    I have an new (n) aebs and can't get airtunes to work now. Only get flashing amber on the two ax and the new airport utility won't pull up the ax's, only the aebs. Have turned off ipv6 but no difference.

  • AME for Purchase Requisitions

    Hello All I am in the process of setting up AME in R12.1.2 for purchase requisitions and got struck with an issue My requirement is to route the requisition to a particular job based on the item category and the requisition total. I setup conditions,

  • Tracker Pad Not Working

    My tracker pad has stopped working.  I've changed the batteries twice to no gain.  The indicator light isn't opereating.  Its 18 months old and up until now I've had no problems.  Could anyone advise if this is a common problem, is there a fix or do