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]

Similar Messages

  • Extra Blank line inserted at the end of the target file

    Hi,
    This is File to File senario and target files created with a extra blank line at the end of the file.
    Below is the source file structure and the content.
    <ns0:MT_MOD_FL xmlns:ns0="http://file2file/MES">
       <EMPLOYEE>
          <ID>12</ID>
          <Name>SREENI</Name>
          <Designation>M2</Designation>
       </EMPLOYEE>
       <EMPLOYEE>
          <ID>121</ID>
          <Name>RAJA</Name>
          <Designation>M3</Designation>
       </EMPLOYEE>
    </ns0:MT_MOD_FL>
    Below is the generated target file
    12     SREENI     M2
    121     RAJA     M3
    Here Generated target file suppose to have only two line instead of 3.
    What exactly do i need to change to generate the file with 2 line.
    I am not using any mapping as both source and target message structure are same.
    IN FCC i used only fieldSeparator, even i have not used endSeparator.
    Thanks in Advanace...

    Hi! Raghu,
    Just go through the below Help..documantation
    [http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm]
    NameA.endSeparator
    To define an additional string as a separator after the last column in a row, specify it here. The system skips this string when it processes the last column (otherwise the system would treat it as part of the last column).
    NameA.fieldSeparator
    If you make an entry here, the system expects that the structure contains the specified character string (one or more characters) as a separator between the individual columns.
    If you have not made an entry for fieldFixedLengths, this is the only specification to identify the individual columns in a row.
    If you made a specification for fieldFixedLengths, the extra length of the separator is taken into account, but no further consistency checks are performed.
    Regards::
    Amar Srinivas Eli

  • Dreamweaver has added thousands of blank lines to my code

    I installed creative cloud and dreamweaver - I edited a few PHP  / HTML  / javascript  files on my server - now dreamweaver had added thousands of blank lines to my code. It will take days to clean them out and I can't seem to find a "find and replace" or "regular expression" to remove these... first of all... THANKS SO MUCH FOR GIVING ME THIS HEADACHE... and now.... HOW THE FRIG DO I GET RID OF THESE???
    It is dreamweaver that did it...
    I just tested and proved it.
    Took a well formatted html doc....
    Edited it (remotely) with two different software -
    Then connected Dreamweaver Edited it again... and WHAMO!
    11,0000 lines of new blank lines.
    Dreamweaver is for sure confusing something as a new line.
    Undoubted there is a reason for this... but it is for sure Dreamweaver the culprit for actuating it.
    The files are of course downloaded as temp files - edited - and then uploaded at save....
    So my tests are true and consistent.
    Three different editing software all performing the exact same steps.
    Yet - Dreamweaver adds thousands of blank lines.
    It looks to me as though it is adding the line where there was a return. Somehow interpreting it as 2 line returns.
    Whatever is happening - is happening inside dreamweaver, while using its "files connect to remote server" function.
    These are live websites with custom PHP, PHP frameworks, MySQL calls, Javascript and...
    I have been using the "Switch Design View To Live View" to test the PHP changes I make right in DreamWeaver.in Dreamweaver, how to prevent it, or how to get rid of the 10's of thousands of returns once they have been added.
    If anyone has any actual answers as to why this is happening …. Please let me know.
    I am not interested in assumptions from the many here who tend to waste a lot of space and time convoluting these forms.
    This is a real problem and has already been proven to be actuated by Dreamweaver... So please... Only answers that may help sort out why or how this is happening within Dreamweaver.
    Thank you.
    Regards,
    Ken

    Ken, I just posted a potential solution.
    Here is my post:
    For people having issues with DW (or any other ftp app) adding extra blank lines: changing the ftp mode to BINARY probably solves this behaviour. It happened once to me when using Filezilla ftp.
    Dreamweaver automatically uses ASCII to transfer readable text based files (like html and php). To change this transfer mode to BINARY, open FTPExtensionMap.txt (WIndows in AppData\Roaming\Adobe\Dreamweaver CS6\en_US\Configuration) and edit that file in a text editor.
    Then change the appropriate mappings.
    Hope that helps fix the problem.It's a known problem in certain cases, though I haven't experienced it a lot (just once a few years ago in Filezilla, actually). It has to do with how a Windows system and certain Linux systems might interpret CR LF and LF line endings.
    Read more here: https://wiki.filezilla-project.org/Data_Type

  • Extra blank line inserted after page break

    Hello,
    I am currently having trouble with alignment using templates in BI Publisher.
    I am trying to create a template that will be printed on a pre-printed form.
    Each group in the report should be separated by page so the group has a <?split-by-page-break:?> right before <?end-for-each?>.
    However, when the next page begins, there is a blank line inserted. This messes up the alignment altogether.
    Code is like this:
    <?for-each-group:G_Document;./DOCUMENT?><?sort:current-group()/DOCUMENT;'ascending';data-type='text'?><?for-each:current-group()?>
    ----INSERT Table TEMPLATE HERE---
    <?split-by-page-break:?><?end-for-each?>
    Output turns out like this:
    (Page1)<TABLE TEMPLATE>
    <Page Break>
    (Page 2)<New Line>
    <TABLE TEMPLATE>
    <Page Break>
    (Page 3)<New Line>
    <TABLE TEMPLATE>
    <Page Break>
    I have found this old thread Split-By-Page-Break inserting extra line that has the exact same problem, however, I have tried all suggested solutions even the last one, and I still am encountering the problem.
    Any help would be greatly appreciated.
    Regards,
    Jovee

    Thanks Varma, for the solution you provided.
    The code for page break was inserted right after the for-each tag, and looks like this:
    <?for-each:current-group()?><xsl:attribute name="break-before">page</attribute>
    Template now works without the extra blank line.

  • Extra blank lines in table

    I am getting an extra blank line in my table rows using the following statement:
    <?for-each-group@column:TC_CELL;ITEM_DATE?>
    <?for-each-group:current-group();PAY_TYPE?>
    <?if: PAY_TYPE = ‘R’?>
    <?if: sum(current-group()//HOURS)!= ‘0’?>
    <?sum(current-group()//HOURS)?>
    <?end if?>
    <?end if?>
    <?end for-each-group?>
    <?end for-each-group?
    When PAY_TYPE is equal to 'R' it will print the sum, but then there is a blank line under it.
    Ex:
    | 20.00
    |
    But I want:
    | 20.00
    Any ideas?

    Sure - you need to specify the correct "context" how we call it.
    When your document contains XSL - the RTF converter has to make assumption
    where to put your code - for if statement the assumption is on fo:block (=paragraph) level.
    You can the context directive @inlines behind your if statement to correct your problem.
    <?if@inlines:sum(current-group()//HOURS != '0'?> should correct the problem
    This example is described on page 2-56 "" in the 5.6.1 User Guide. You may also want to read on the context in general in the section "Using the Context Command" (2-107 in the 5.6.1 user guide).
    Hope that helps,
    Klaus

  • Table of Texts results in extra blank lines

    I have a table of texts in a flowed subform that expands for each line of text. The text and font is a chinese font (Adobe Song Std L). I also have autowrapping turn on so it autowraps when the line is too long.
    I would like each new line in the table to have the carriage return as if it is wrapping, but not add an additional blank line like it's a new paragraph.
    So instead of using a table I thought I'd concatenate all the lines together and separate them with a control character for carriage return when I want a line break (still allowing Adobe to autowrap when a particular line is too long).
    I am preparing this string in SAP which gets sent to Adobe. I've tried concatenating '\u000D' but it just shows those characters rather than performing a carriage return.
    Any ideas how I can accomplish this without ending up with a new paragraph (extra blank line) between my lines of text?
    Thanks,
    Scott

    Sure - you need to specify the correct "context" how we call it.
    When your document contains XSL - the RTF converter has to make assumption
    where to put your code - for if statement the assumption is on fo:block (=paragraph) level.
    You can the context directive @inlines behind your if statement to correct your problem.
    <?if@inlines:sum(current-group()//HOURS != '0'?> should correct the problem
    This example is described on page 2-56 "" in the 5.6.1 User Guide. You may also want to read on the context in general in the section "Using the Context Command" (2-107 in the 5.6.1 user guide).
    Hope that helps,
    Klaus

  • Sales order item assignemnt block ,if we click edit extra blank line on items level i want remove that line how to do it?

    Hi Team,
    Sales order item assignemnt block ,if we click edit ,Item assignment block extra blank line on items level is showing , i want remove that line how to do it?
    Thanks&regards
    Kalpana

    Hi Ravi,
    With the help of Dharmakasi Thotakura...
    As suggested to do changes in DO_INITCONTEXT and GET_I_T_TABLE methods ....i have implemented these two methods...Now problem only one column ITEM_NO will be disabled  remaining cloumns not disabled...i want to disable entire column including ACTION column also..Action Column contains INSERT and DELETE buttons.how to do it?
    METHOD
    do_init_context.
    CALL METHOD SUPER->DO_INIT_CONTEXT.
    DATA : lr_ent TYPE REF TO cl_crm_bol_entity,
    lr_btadminh TYPE REF TO cl_crm_bol_entity,
    lv_object_id TYPE string,
    lo_context TYPE REF TO /RCRM/15IT__ITEMS_CN00.
    * gv_flag TYPE crmt_boolean.
    lr_ent ?= me->typed_context->btitems->collection_wrapper->get_current( ).
    lr_btadminh ?= lr_ent->get_parent( ).
    lv_object_id = lr_btadminh->get_property_as_string( iv_attr_name = 'OBJECT_ID' ).
    lo_context ?= me->typed_context->btadmini.
    clear lo_context->gv_flag.
    IF lv_object_id IS NOT initial.
    lo_context->gv_flag = abap_true.
    ELSE.
    CLEAR lo_context->gv_flag.
    ENDIF.
    ENDMETHod
    METHOD
    get_i_t_table.
    CALL METHOD super->get_i_t_table
    EXPORTING
    index = index
    component = component
    RECEIVING
    rv_disabled = rv_disabled.
    DATA: lv_component TYPE name_komp,
    lo_entity TYPE REF TO cl_crm_bol_entity,
    lo_property TYPE REF TO cl_crm_bol_entity,
    lv_string TYPE string.
    IF rv_disabled = 'FALSE'.
    lv_component = component.
    lo_property ?= collection_wrapper->find( iv_index = index ).
    lo_entity ?= lo_property.
    lv_string = lo_entity->get_property_as_string( iv_attr_name = lv_component ).
    IF lv_string IS INITIAL or lv_string = '0000000000'.
    IF gv_flag IS NOT INITIAL.
    rv_disabled = 'TRUE'.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDMETHOD.
    Thanks
    Kalpana

  • Getting an Object Identifier String given a line of source code? HELP!

    (forgot to close the code tag on that last one!)
    Hi there,
    I am in desparate need of getting the object identifier given a particular line of source code. I need this for the debugger I'm writing, and since the jdb forum never gets reponses; just more unanswered questions.
    Right so, here's my problem in more detail. I can find out when a method is called in the Java virtual machine, and what its name is, and arguments and values and such like - using the Java Debugging Interface. BUT: unfortunately I cannot get the object identifier used in the source code that generated this call. I can however get a unique long id that identifies this object .. if that helps?(thinking hashtables here maybe?!)
    So, I may know that the constructor of EddClass has been called, and this the following line generated this call:
    EddClass edd = new EddClass();.. so what I need is a fail safe way of finding out "edd" from this - given all types of method calls.
    This is quite tricky because there are loads of ways methods can be called e.g.
    tty.getClassExclusions(); // Here I would know getClassExclusions had been called, and I would need to find out the object identifier "tty" called it
    Temp a, b, c;
    a = b = c = new Temp(); // Here I would know the constructor for Temp had been called, but now I would just want to know "c"
    AnotherEg ae = (new Egg()).getAnotherEg(); // and in this last case if I had found out that the Egg constructor had been called, I don't want to find out any object identifier from this line of code - since the object is anonymous; however if I had found out that getAnotherEg() had been called I would want "ae"Ok, well - please help: I'm making a Java Animator that will be freely available - that serves to graphically animate the execution of another java program. It'd be cool if one of you guys could help make it really cool. Plus there are Dukes available!!
    - Edd.

    this is quite a complicated question I think!
    I'm not sure but you maybe need to know just about the whole java lang. spec to do this.
    I'm sure there are plenty of free java parsers around, so unless you have a lot of time available its probably best to download one, figure some way to feed it a single line from within a code block, and extract its symbol table.
    Once you have the symbol table, there will probably be some other data available from the parser to say which are identifiers.
    Its then up to your debugger to figure out which one is the interesting one!
    sorry this is so vague but I think you've asked for something that is quite involved!
    asjf

  • Dreamweaver had added thousands of blank lines to my code

    I installed creative cloud and dreamweaver - I edited a few php / html / javascript  files on my server - now dreamweaver had added thousands of blank lines to my code. It will take days to clean them out and I can't seem to find a "find and replace" or "regular expression" to remove these... first of all... THANKS SO MUCH FOR GIVING ME THIS HEADACHE... and now.... HOW THE FRIG DO I GET RID OF THESE???

    LOL... HAHA Yes... and magic pixie dust and tooth fairies...
    Hog Wash!
    It is dreamweaver that did it...
    I just tested and proved it.
    Took a well formatted html doc....
    Edited it (remotely) with two different software -
    Then connected Dreamweaver Edited it again... and WHAMO!
    11,0000 lines of new blank lines.
    Dreamweaver is for sure confusing something as a new line.
    Undoubted there is a reason for this... but it is for sure Dreamweaver the culprit for actuating it.
    As for people like Ben Pleysier and Nancy O. ...
    It is really dangerous to give advice about things that you do not know to be true.
    You really should not offer speculation as truth... that is harmful to people... not helpful.
    It would be one thing to say "could be anything" but to defend dremweaver as "NOT the cause" and sight magic pixie dust and mysticism of editing "remotely" (Remotely... oh?! heaven help us : 0 )
    is just completely ridiculous. You are only proving here how little you know and how little you are willing to accept.
    I have found other people complaining about the same thing... Dreamweaver adding thousands... and in some cases 10's of thousands of blank lines.
    It is not magic pixie dust people... It is Dreamweaver that is doing this under specific conditions.
    It is Dreamweaver that did it...
    You guys want to gather around Hogwarts and talk about the mystical reasons this must have happened. Go ahead.. say hi to Harry and Hermione for me : )
    Just more proof how inept and ridiculousness a place like this is.
    How is this helpful to me as a customer?
    When what I need is a solution to the problem... a way to fix it or to save myself hours pof headache and lost time....
    Nope... instead I get the witches of Adobe conjuring up their mysticism...
    Really.... Really... If you cant nbe helpful... why just waste more time and precious data space on the internet with your rhetoric...
    Anyone have any >>>>>>>real<<<<<<< answers that are not delusional???

  • Why do emails forwarded or replied to gain extra blank lines

    When replying to, or forward emails that contain original email(s), the original emails frequently gain extra blank lines (Spaces). These extra blank lines grow in number each time the message is include in another email until it becomes so big that the emails become difficult to read.
    This happens regardless of whether I created the original emails or not.

    Hi guigs2,
    Thanks for the reply, however, it does not solve the problem.
    I want to include the original message(s) when forwarding or replying. The problem is that the included original message(s) gain extra blank line spaces between paragraphs each time the original message(s) are transmitted. This means the emails automatically grow in length with blank lines. For example: The original message consists of :
    ''Dear guigs2,''
    ''Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.''
    ''Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.''
    ''Kind regards,''
    ''gwap.''
    When this message is replied to, and comes back extra blank links between paragraphs appear. For example:
    ''Dear gwap.''
    ''Thank you''
    ''Kind regards''
    ''guigs2.''
    In a message dated 06/03/2014 17:46:35 GMT Standard Time, [email protected] writes:
    ''Dear XXX''
    ''Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.''
    ''Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.''
    ''Kind regards,''
    ''gwap.''
    Each time the original message(s) is/are sent the number of blank lines increases.
    Dear guigs2
    My pleasure.
    Regards
    gwap
    In a message dated 0703/2014 17:46:35 GMT Standard Time, [email protected] writes:
    Dear gwap.
    Thank you
    Kind regards
    guigs2.
    In a message dated 06/03/2014 17:46:35 GMT Standard Time, [email protected] writes:
    Dear guigs2
    Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.
    Blah blah blah blah blah blah Blah blah blah blah blah blah Blah blah blah blah blah blah.
    Kind regards,
    gwap.

  • Extra empty lines in java code

    Hello
    I am experiencing a strange behaviour of SJSC 2.1 (Windows XP) after insttalling the last performance fix
    When manipulating components in a page, the .java file gets corrupted. An extra empty line is including after each line. Code still compiles but obviously the code becomes unreadable. This happens if you add a new component to the page o double-click in a component (to edit the action or valuechange methods
    Editing-only (in the java window) works ok.
    An additional problem found. International characters are not handled properly anymore by the design editor (or the properties window). Changes to them are translated to question marks in the JSP. Only wokaround is to directly edit the JSP
    All this happened just after installing the hotfix.

    I had the same problem, and pointed out to the Creator, who were able to reproduce it. So, they know about it now.
    A very undesirable effect of this problem is that as the Java files grows in size, JSC becomes very slow, and can sometimes hang.
    Also, I've noticed that this problem happens only with JSC1 created pages, not with JSC2 pages.
    My workaround is the following:
    1). Download and install the text editor - TextPad
    2. Go to the folder containing the java files with the extra lines, select them all, and open with TextPad.
    3). Fix the extra line problem with the following regex:
    ^[[:space:]]*\n
    The above regular expression, will take care of the extra lines.
    4). Do a search and replace all for all active documents, and save and close.
    But obviously, this is a serious problem, and I urge the Creator team to please fix it at the earliest, so as not to cause further confusion and loss of time and effort!
    Regards
    Haroon

  • Need script or Program to count lines of source code

    Hello, I need a script or a program that can count how many lines are there in a directory contains source code as well as other directories(contain code as well), there are .java files in these directories, the script or program should count number of lines with/without comments(starts with // or surrounded by /**/)
    Thanks a lot!!!

    I wrote a quick python program to count the lines in a file, you could just adapt it to your needs, or use the second program I have in this post that condenses all the .java files in a directory into a single text file, which you can then use a line-count on (useful if you need to print it as well - I wrote it for my IB dossier java project), if you'd like a proper script for your needs, otherwise check the other suggestions.
    Run it by copying the code into a text file and saying it as script.py (change script to whatever you want) and running it with python /path/to/script.py
    #!/usr/bin/env python
    #Program to tally the lines in a file
    #Author: lswest
    import os
    home=os.path.expanduser("~")
    endPath=raw_input("Path to file relative to your home directory (include file name and extension): ")
    count=0
    ff=open(os.path.join(home, endPath))
    for x in ff:
    count+=1
    values={'name': os.path.join(home,endPath), 'count' : count}
    print "The file %(name)s contains %(count)s lines." % values
    #!/usr/bin/env python
    #Script to condense the multiple files of a project into one for easy printing/copying
    #Author: lswest
    import os
    home=os.path.expanduser("~")
    endPath=raw_input("Path relative to your home directory to the project folder: ")
    extension=raw_input("Extension of files you want to condense: ")
    outPath=raw_input("Path to output file relative to home directory: ")
    outFile=raw_input("Output file name (including extension): ")
    ff=open(os.path.join(home+outPath,outFile), "wt")
    for root, dirs, files in os.walk(os.path.join(home,endPath), "true", "none", "true"):
    for infile in [f for f in files if f.endswith(extension)]:
    fh=open(os.path.abspath(os.path.join(root,infile)))
    for line in fh:
    ff.write(line,)
    fh.close()
    ff.close()
    Last edited by lswest (2009-03-10 16:23:52)

  • "clear recent history" is not lit up, can't activate; I have an extra blank line under all these editing icons which I do not want?????Yahoo says it is your issue; also when I copy for instance a screenshot (see below)

    1)trying to clear cache: when I click tools,options, "clear recent history" is not lit, I do not know what else to say. I tried to copy the screenshot sample, but it wouldn't let me.<br />
    2) On a page: the items appear in this order -<br />
    a)Header line:Firefox symbol Ask question or whatever I am seeking<br />
    b)2nd line: the words: File, Edit, View, etc. <br />
    c) 3rd line:arrows then 7 icons for editing which appeared one day, a small window that tells where I am with a star and then a window with
    google's symbol and a small window with a magnifying glass.<br />
    d)4th line: a wide empty line<br />
    e)5th line: a small window telling what I am doing ie Ask a Question etc. then a plus sign in a gray box and then nothing follows. <br />
    Yahoo says that the blank line and the icons are Firefox's issue. <br />
    I never chose to have icons for editing instead of the words. I do not know how they got there. I had some problems for a number of weeks (1/4/11 to 2/5/11 because all of the 2nd line had disappeared and I had no bookmarks. Yahoo was completely ineffective and I got disparate yesterday and started click all over the screen and suddenly the words of that line appeared again as well as all my bookmarks were back.?????odd. So all this maybe related. I just would rather not have that blank line as it lowers my screen.
    3) cont'd: to my desktop I cannot retrieve from my desktop. I click to open it and the page opens, but it keeps opening and opening and on and on and won't stop, so I have to close the tab and sign in again. This has happened about ten times recently. I guess that is it.

    * Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Automatically start Firefox in a private browsing session"
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Extra Blank Line gets added at the Beginning of the file by File Adapter...

    Hello All,
    I have created an RFC to File Adapter scenario in PI 7,1 and I am using Content Conversion in the File Adapter to convert the payload structure to flat text file. The input Structure is simple as follows:
    <File>
    <FName>some file name</Fname>
    <Record>
      <Data>
          <Line>Text Lines</Line>
    </Date>
    </Record>
    </File>
    while using the following Content Conversion Parameters: While I have defined "Record" as Structure.
    Record.addHeaderLine   = 0
    Record.fieldSeparator      = 'nl'
    Record.endSeparator      = 'nl'
    Here everything is working fine except that the text file getting generated has a blank line at the beginning. I was thinking that by adding "Record.addHeaderLine   = 0" parameter, no header line will be added to the file but this seems to be not working. I tried to include the top element "File" with the same parameters and different combinations but was not able to achieve the result and it stopped the file creation altogether.
    So, I'll appreciate if anyone can suggest something to get rid of the this blank line at the beginning of the file.
    Regards,
    Athar

    Extra blank line is actually provided for the FNAME node, but not displayed because of it has different structure with Record node.
    Change the structure for FNAME to :
    <FName>
    <Data>
    <Line>some file name</Line>
    </Data
    </Fname>
    this way "some file name" will be dispalyed in the text file at the first line of file. To remove it use this trick, define the following values in Content Conversion Parameters:
    in the Recordset Structure : FName,Record
    FName.fieldFixedLengths     = 0
    FName.fixedLengthTooShortHandling =     Cut
    FNamee.fieldSeparator = '0'
    FName.endSeparator =     '0'
    Record.fieldSeparator = 'nl'
    Record.endSeparator = 'nl'
    Rgds,
    Triana

  • Out put file with three extra blank line

    Hi Expert
    i am snding some article data from sap to ftp location.from proxy class the internal table has all correct record .but in the out put file three blank line is coming with all the record at the end.
    i have the following cc parameter
    File.fieldNames Trans_type,Transfer_no,SrcSt_no,DestST_no,LPN_No,Transfer_date
    File.fieldFixedLengths 1,30,10,10,10,8
    then i added
    File.endSeparator '0'.
    but still 3 blank line is coming in the output file.
    please suggest somthing.

    Hi !
    Why are you using File.endSeparator '0'. ?
    Are you sure your input data doesn't have those 3 blank records in the end? Check the message payload in the sxmb_moni transaction.
    Regards,
    Matias.

Maybe you are looking for