Remove intentation on first line

Hi. I am using inCopy. Anyone who knows how to remove intentation (I hope that is the right word in English) on the first line in each box? Thankful for help with this annoying little thing

Does this help?
If yours is set to zero, then perhaps it's just a tab. Show hidden characters to see if that's the case.

Similar Messages

  • Removing first line in text file... Memory and HD concern

    Hello all,
    I want to remove the first line of a text file. This is easy... One way
    to do it, is to find the first "end of line" caracter, strip the string
    and re-write the sting in file with the "strip to sreadsheet" VI.
    Since the file can be quite large (about 120000 lines), is this a good
    way to do it. Will it re-write all the line or just moving the "begin
    of file" pointer to the second line? If it re-write the whole file,
    this option is not very good since I could have to do this operation
    quite often. (I want the file to be a kind of circular buffer / backup).
    What do you think is the best way to do this?
    Thanks!
    Vincent

    I think you would have to read in all the data and write it to a new file, you could either keep the data in RAM or simply write to another file then delete the original, and then rename the temp one.  So obviously that is a lot of data and memory.
    My main question is are you trying to use a text file as a circular buffer?  If so can you tell us more about the data, ie is it strings of a constant length?  Does a user ever need to read the file or could we head binary?
    A solution would be to truly make the file a binary file, so you could actually seek through the file easier, and maybe make the first data chunk the location of the most recent write.  The obvious danger is then writing over existing data.  This solution is still risky because of the data writes.
    You may want to look at some of the other file formats like HWS which maintains a hierarchy of data for you so you can simply add and remove data from it.  However, a user will not be able to easily read it.

  • Remove 1st & 2nd lines in 1st file, and 1st line in 2nd file. I want the headers to be the first line after the script runs!

    I have two files that look like this (Notepad++):
    In the first file, which has a date as a name and always ends in 'COV', I want to remove the 1st & 2nd lines.  All lines end in LF (LineFeed).  In the 2nd file, which has a date as a name and always ends in 'RSK', I want to remove the 1st line. 
    Basically I want only the headers.  I'm working with the code below.  I've tried several different iterations of
    reader.ReadLine().Skip(1);
    reader.ReadLine().Skip(2);
    reader.ReadLine().Skip(3);
    It never really gives me what I want, so I can't tell what's going on here.  I guess I'm missing something simple, but I don't know what.  Any ideas, anyone?
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.IO;
    using System.Diagnostics;
    namespace ConsoleApplication1
    class Program
    static void Main(string[] args)
    string sourceDirectory = @"C:\Users\rshuell\Desktop\Downloads\Files";
    try
    var txtFiles = Directory.EnumerateFiles(sourceDirectory);
    foreach (string currentFile in txtFiles)
    if (currentFile.Contains("COV"))
    var items1 = new LinkedList<string>();
    using (var reader = new StreamReader(currentFile))
    reader.ReadLine().Skip(2); // skip 2lines
    string line;
    while ((line = reader.ReadLine()) != null)
    items1.AddLast(line.Replace("\"", ""));
    File.WriteAllLines(currentFile, items1);
    else
    var items2 = new LinkedList<string>();
    using (var reader = new StreamReader(currentFile))
    reader.ReadLine().Skip(1); // skip one line
    string line;
    while ((line = reader.ReadLine()) != null)
    items2.AddLast(line.Replace("\"", ""));
    File.WriteAllLines(currentFile, items2);
    catch (Exception ex)
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Call the ReadLine() twice if you want to skip the first two lines. Each call results in a single line being read:
    static void Main(string[] args)
    string sourceDirectory = @"C:\Users\rshuell\Desktop\Downloads\Files";
    try
    var txtFiles = Directory.EnumerateFiles(sourceDirectory);
    foreach (string currentFile in txtFiles)
    if (currentFile.Contains("COV"))
    var items1 = new LinkedList<string>();
    using (var reader = new StreamReader(currentFile))
    reader.ReadLine(); //read line 1
    reader.ReadLine(); //read line 2
    string line;
    while ((line = reader.ReadLine()) != null)
    items1.AddLast(line.Replace("\"", ""));
    File.WriteAllLines(currentFile, items1);
    else
    var items2 = new LinkedList<string>();
    using (var reader = new StreamReader(currentFile))
    reader.ReadLine(); // skip one line
    string line;
    while ((line = reader.ReadLine()) != null)
    items2.AddLast(line.Replace("\"", ""));
    File.WriteAllLines(currentFile, items2);
    catch (Exception ex)
    Calling the Skip method on the already read string returned by the ReadLine() method won't help you at all here. By the time you call the Skip method the line has already been read from the file. You must call the ReadLine() method for a new line being read.
    Hope that helps.
    Please remember to close your threads by marking helpful posts as answer and please start a new thread if you have a new question.

  • How to remove first line of outgoing messages: ?xml version="1.0"........

    On outgoing messages, when I look in MONI, I see properly formatted XML message.
    The first line of all my outgoing files has this line:
    <?xml version="1.0" encoding="UTF-8" ?>
    Is there a way to suppress this?
    If so, is there a way to suppress for only certain partners within one interface?
    Thanks,
    Jeff

    Hi Jeff,
    As others pointed without this line the document will not be a valid document. Can you tell your complete requirment. One of these kind of requirement is discussed in this thread, you can see whether its the same in your case or not. If not then tell your complete req. so that somebody can help you out here.
    Remove first line in the XML Document
    Regards,
    ---Satish

  • Remove xml first line from generated VO xml

    I'm combining multiple xml file to generate report using BIPublisher. I generated xml based off of a VO using VO.writeXML. How do I remove first row (<?xml version="1.0"?>) in the xml?

    use Transformer and set setOutputProperty to omit first line.
    Transformer transformer = TransformerFactory.newInstance().newTransformer();
    transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
    Edited by: Puthanampatti on Dec 6, 2012 6:42 PM

  • Need help with java File IO ( Removing the first line from a file )

    Hi guys ,
    I am currently doing a project in which I need to extract out the values from the second line of a file to the end. The question is how do I ignore the first line ??
    I thought of two possible answers myself. One is to use randomaccessfile to read and rewrite. But the file may be HUGE so storing the whole file in memory is not a very good idea.
    Second is to jump to second line before doing while ((str = in.readLine()) != EOL) ... or just delete the first line from the file. Can anyone suggest a better solution or show me some sample codes ? Thanks.
    regards
    billyam

    Just skip the first line (bufferedReader.readLine()), add a comment, and then handle the rest of your file

  • Applescript to remove first line from CSV

    Hi,
    I receive CSV files that I then drag and drop into a Numbers spreadsheet.
    The CSV files have two lines of data (which correspond to two rows of data in a Numbers spreadsheet).
    The first line in each CSV is a header that I would like to delete before it goes into the spreadsheet.
    I would like to write an Applescript (application) that I could drop the CSV onto, that would delete the first (header) line.
    Seems like this should be simple, but I've spent the past hour searching for how to do this and I haven't found a clear answer anywhere.
    If anybody could help I'd really appreciate it.
    thanks.

    Saved as an Applescript App, this will delete the first line of text files dropped on the App
    USE WITH CAUTION and Test
    on open the_Files
         repeat with i in the_Files
              tell application "Finder"
                   if name extension of i is "csv" then
                        do shell script "sed  -i \"\" '1 d' " & quoted form of POSIX path of i
                   end if
              end tell
         end repeat
    end open

  • Can't Include First Line of XML

    Hey Guys,
    I'm working with the XML object and am receiving an error on
    my XML when I include the typical first line of a standard XML
    file:
    <?xml version="1.0" encoding="UTF-8"?>
    I receive the following error in FF:
    Error: XML or text declaration not at start of entity
    Source File:
    http://localhost/public/test.jsp?file=test.xml
    Line: 3, Column: 1
    Source Code:
    <?xml version="1.0" encoding="UTF-8"?>
    If I remove that line, the file loads, but shouldn't that
    line be there? I'm worried I'll run into a different error down the
    road by not having this line of code in the XML.
    Any suggestions would be appreciated.
    Thanks.

    kraftomatic84 wrote:
    > Line: 3, Column: 1
    This line of the error may be pointing to the issue. If the
    <?xml ?> tag is present it is supposed to be the first line
    of the file. This message indicates that it is on line 3. Some
    server languages inject empty lines as part of their processing,
    perhaps your JSP is doing that, or perhaps you simply have a couple
    of empty lines above the opening xml tag.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Edit First line in dreamweaver templates

    Hello,
    When I create a page from a Dreamweaver template, a
    dreamweaver comment similar to the one below will be inserted:
    <!-- #BeginTemplate "/Templates/test.dwt" -->
    Each time I edit a page to add php code in the very first
    line, it is removed with every template update and the source code
    again starts with the dreamweaver comment. I need to add to all my
    pages a php code in the very first line like this one:
    <? $ob_start; $session_start; ?>
    How can I do that without removing the code from my pages
    with each template update. Another problem is that I can't insert a
    placeholder in the very first line of a dreamweaver template. Above
    that the first line is locked in dreamweaver, so that I can't
    change it manually. Is there any workaround available?
    Thanks,
    Philip

    > How can I do that without removing the code from my
    pages with each
    > template
    > update. Another problem is that I can't insert a
    placeholder in the very
    > first
    > line of a dreamweaver template. Above that the first
    line is locked in
    > dreamweaver, so that I can't change it manually. Is
    there any workaround
    > available?
    Put the code ABOVE the <html> tag.
    Which DW are you using? It looks like DW4 or earlier....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "flip3" <[email protected]> wrote in message
    news:ec40u0$mr3$[email protected]..
    > Hello,
    >
    > When I create a page from a Dreamweaver template, a
    dreamweaver comment
    > similar to the one below will be inserted:
    >
    > <!-- #BeginTemplate "/Templates/test.dwt" -->
    >
    > Each time I edit a page to add php code in the very
    first line, it is
    > removed
    > with every template update and the source code again
    starts with the
    > dreamweaver comment. I need to add to all my pages a php
    code in the very
    > first
    > line like this one:
    >
    > <? $ob_start; $session_start; ?>
    >
    > How can I do that without removing the code from my
    pages with each
    > template
    > update. Another problem is that I can't insert a
    placeholder in the very
    > first
    > line of a dreamweaver template. Above that the first
    line is locked in
    > dreamweaver, so that I can't change it manually. Is
    there any workaround
    > available?
    >
    > Thanks,
    >
    > Philip
    >

  • First line not coming when FCC is used

    Dear All,
    I am using FCC on sender side and the input file is in UTF-8 format....
    i am using FCC with key fields on the sender file adapter...
    now as the UTF-8 file was having control characters at start the keyfield was not matching the start of file and hence the first line of data was not coming in moni..
    i got an answer to this query yesterday where Stefan Grube and Volker replied saying that some of the editors like notepad and word add control chars at start in UTF-8 files and hence UTF-8 files should be created only using editors like TEXTPAD .....
    but the problem is that the file would always have control chars at start.. what are the ways of removing it ?
    i am thinking of an adapter module at the sender side...
    Edited by: Tarang Shah on Jun 11, 2009 6:31 AM

    Hi,
    I faced this kind of problem previously.
    Have used SynTextEditor in which the hidden/special/control chars are clearly visible, delete those chars and use for input.
    Alternatively, you can save the file in UTF8 format in textpad and use as input.
    Regards

  • Print's first line then freezes

    Blue tooth connetion is fine on both printer and computer.  Computer recognizes printer.  Printer says "ready." When send a document to print, paper drops in properly, and printer makes printing noise. Display says "Now Printing," but nothing seems to be happening.  Eventurally an error message displays on laptop. Cancel printing (which requires disabling from labtop to get it to stop). When paper comes out, only first line of text printed. Called tech support. They asked me to print from notepad.  It prints from notepad (only tested on line of text).  It wll also print from Word doc if only one line of text.  WIth multiple lines of text or images from any program, it fails. I uninstalled, reinstalled, checked ink cartriges, checked paper, turned on-off, restarted, turned on devices in both orders (printer first, computer first)... all multiple times. Same result. The printer was able to print a webpage before (only printed one page since I've owned it). Now that I have installed the updated driver it does not work. 

    Hey , Welcome to the HP forums! I hope you enjoy your stay here. I see that you are experiencing some issues with printing from your Windows 8.1 machine to your Officejet 150. I can help with that. First, to make sure the printer itself is functional on the printer click on Setup and then Reports and then Print Status Report. If that prints then we know the printer itself is functional. Next, we'll test your print system. To do so:Turn the printer off.Go to your PC's Control Panel and then Printers and Devices.Right click on any picture of the printer you have.Click on Remove Device.Repeat for any other printers that are listed.Turn the printer on.Try printing.If this works then we know your print system is fine. From here we can try printing through Bluetooth. To do so:Return to Devices and Printers.Right click on the printer to remove it.Add the Bluetooth printer back.Try printing.Hopefully this will allow you to print. If you have any other questions please let me know. Likewise if it resolves your issues then please let others know by clicking on Accept as Solution below my post. I hope this helps and I hope you have a great evening!

  • First line in textarea

    Hi Guys
    Is there a way of finding out if the user is on the first line of a textarea?

    Aha, but thats the catch. If the textarea already has some content in it and the user is at the beginning of the text editor, if he presses the backspace it will take him to the previous textarea (provided there is one).
    else if(event.keycode == 8 && ta.text.length > 0 /*need to check if user on first char*/) {
          if(taContainer.numChildren > 1) {
                // go to previous textarea without removing current ta
    EDIT: you changed your reply. I'll take a look at it and get back to you

  • Deleting first line off file

    Hello,
    I want to remove the first line of a file. Is there any way to do that
    without reading the whole file and putting it in a huge string?
    Something like setting the "begining of file marker" (does that
    exist?). I've looked in the "advanced file function" and can't find a
    way to do it.
    Any suggestion?
    Thanks a lot!!
    Vincent

    I don't see any Read File by Lines vi in LV7.1.  Maybe it exists in LV 8.  However there is a Read Lines from File vi but it does not produce an array of lines (at least not in LV 7.1).  You can use the Read Lines from File vi and set the number of lines to 1.  The output mark after read is now set to point to the second line.  You can use this as an input to start of read offset on your next read call.  This vi will open the file, read, then close the file.  Calling it a second time will open the file again, read, then close again.
    Another way is to open the file using Open/Create/Replace File.  Then use Read File and set the Line Mode input to True.  This will read the first line.  A second Read File call will then begin reading at the second line without having to wire any offsets.  After reading all that you want, you close the file.  One open, several reads, one close.  This is more efficient.
    Message Edited by tbob on 03-06-2007 03:03 PM
    - tbob
    Inventor of the WORM Global
    Attachments:
    ReadLines.png ‏4 KB

  • Removal of Old Second Line

    Hi,
    We've been in our house for a short while now, and we've decided to neaten up the mess the previous homeowners left.
    Initially, we thought they'd installed a NTE5 as an extension, but it turns out that it is in fact a complete second line, cabled seperately to the BT hole-in-the-pavement outside our house.
    How much would it be to request an engineer to remove this line? (Or is it even possible?) We really don't need it, and when we activate the line here, we really don't want to get mixed up and activate the second one.
    Finally, I've managed to get in touch with the previous owners and they said they in fact had 3 lines, but they believe they had the third deactivated and removed; I haven't been able to find any evidence of it, but is it possible to make sure that this has been done? I think this one was active on the "unused" pair in the first line, but I'm not sure.
    Thanks,
    Joe
    Solved!
    Go to Solution.

    Hi,
    I would do that, but it goes to a grey BT box on the outside of the house (with the piper emboss) and I really want to get rid of the black cable.
    I opened this box by mistake, an it's just two cables joined together. Is it safe to just clip it there?
    Thanks!
    Joe

  • Function: Return First Line of Another Cell (before line break)

    Howdy all!
    I have a bunch of cells that have multiple lines (line breaks created by pressing option-return). I want to create a function that will return the first line of a cell (IE: the text before the first line break). Any thoughts on how to do this?
    IE, if A1=
    Test 1
    Test 2
    Test 3
    Then I want to point the function from another cell to A1 and have it return Test 1.
    The code would look like this:
    =REPLACE(A1,SEARCH([line break],A1),LEN(A1)−SEARCH([line break],A1)+1,"")
    (IE: It searches for the line break, then replaces everything from that part on with nothing.)
    The problem is that I don't know how to get Numbers to think about [line break]. Thought that =char() would work but I don't know the unicode to put in (85, 2028, and 2029 didn't work).
    Thoughts?
    Matthew

    Thanks, I thought that I had tried that at some point, but I guess I hadn't done it correctly!
    I made one adjustment, I subtracted one from the SEARCH. The formula as you have it actually returns the line break along with the first line (you can't see it in your example because your rows are taller). (I also removed the third peramiter from the SEARCH, but that is a personal preference.) Outside of that this works perfectly. Thanks!
    B1=LEFT(A1,SEARCH("
    ",A1)−1)
    Matthew

Maybe you are looking for