Need to add a carriage return in Paragraph styles

Hi. I am in a muddle. I have a large amount of data from an xml source. I need to quickly add carriage returns appropriately throughout it so that the paragraph styles can be differentiated.I am using tags manually mapped to styles to do this.
In order to carriage returns am I right in thinking that I can add a GREP style to each para style, and that it will sense the end of the para through the end marker position of each tag? If this is so, what would the GREP expressionlook like to that I can automate locating the end of a tag/para style so that I can add ~b to it?
Gratefully!

Hi @chantal_diva arts,
It seems to be difficult, because you have much more invinsible character than only the xml markers in your document.
I think one good way could be @obi-wan Kenobis way.
Perhaps you can upload an example idml on a file hoster of your choise (e.g. xup.in).
Regardless, you can try the following:
1. text search:
<FEFF>
replace with:
2. grep search:
(?<=\b##)(.)
replace with:
\r$1
3. clean document
grep search:
#+
replace with:
(nothing)  an empty replace field
Have fun

Similar Messages

  • Possible to add the Carriage Return Character

    Hi all,
    I need to add the Carriage Return characters at the end of the each paragraphs.  I found the insertTextAsContent (using: {String | SpecialCharacters} , position: XMLElementPosition), but don't know how to use this function. I think in this method accept only the position as XML Element Object.
    How to use this function to achieve my task?.
    Using: InDesign CS4/Javascript/Windows.
    Regards,
    Karpanai

    you could do: string += "\r";
    \r is a carriage return, and \n is a newline

  • GREP to Add a Carriage Return at End of Paragraph

    The following search criteria adds a return at the beginning of a paragraph
    Find
    ^.
    Change to:
    ~b$0
    Now I want to instad add a carriage return at the end of the paragraph instead, so I changed my search criteria as shown below, but never get the carriage return. How do I add a carriage return to the end of a pararagh?
    Find
    \z
    Change to:
    ~b

    Peter
    Thanks for your help. I want to create a new, empty paragraph so I can apply a different paragraph style to it than the paragraph style used in the preceding paragraph. Once I have that, I will cut and paste text into the new paragraph that uses the just applied paragraph style.
    Or perhaps more simply, move text that already has a paragraph style applied  to it into a new location, but first have that new location set up with the correct paragraph style so that the formatting is not lost.
    Hope that makes sense.

  • How do I add a carriage return to the output ?

    I have a listBox with 15 values. That list box is connected to a textBox. The text box prints only the selected items from the listBox (thanks try67 for the help getting that set up). Now what I would like to do is have each of the items that are selected to appear seperately in lieu of having one lone continuous line. I think what I need to do is add a carriage returne (or two) between each item selected. Here is the code I have for custom calculation script
    var v = this.getField("DiagnosisList").value;
    if (typeof v=="string") event.value = v;
    else event.value = v.join(", ");
    I triend adding  /r/n   but I keep geting syntax error. Thanks for any assistane.

    I appreciate you assistance, but this is not going to work. The narrative on the listBox for each item is so large, that it either gets chopped off or if I set the text size to auto it is too small. Is there a way to display the list items in a format that 'wraps'? If not then I will neet to set it up with check boxes now, but here is how the format should work:
    () item one
    () item two
    () item three
    then allow certain ones to be checked,
    (x) itme one
    () item two
    (x) item three
    and based on the ones checked, those are the only ones that print
    Item one.
    Item two.

  • Add a carriage return in a Unbound String Field

    Post Author: Razzle00
    CA Forum: Formula
    Hi,
         How can I add a carriage return to an unbound string field in a crystal report.  I am using the bundled version of CR with MS Visual Studio 2003 & 2005.  My formula needs to look something like this....
    'Heading One:' + CARRIAGE RETURN + trim({tablename.fld_1}) + CARRIAGE RETURN + 'Heading Two:' + CARRIAGE RETURN  + trim({tablename.fld_2})
    this code all needs to be in 1 unbound string field.  Is this possible?
    Thanks,
    Razzle

    Post Author: SKodidine
    CA Forum: Formula
    To add a carriage return, add CHRW(13)
    For example:
    'Heading One:' & chrw(13) & 'sample text';
    will result in:
    Heading One:
    sample text

  • How to add a carriage return

    Hi
    How to add a carriage return after Survey Type, so that the Channel Time will start from column one.
    Thanks,
    Steve
    Solved!
    Go to Solution.
    Attachments:
    Write.vi ‏39 KB

    try something like the following draft. (not tested, so modify as needed).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Write-MOD.vi ‏32 KB

  • Hard Carriage Returns on Paragraph and XML

    Hi,
    I'm still running FM 7.2, I have 8.0, but we are not ready as a company to move yet.
    I am capturing legacy FM information and need to save as XML.
    This information will at times have paragraphs that used hard carriage returns to build in separation and make things easier to read.
    When we export this XML, these hard CRs are removed and all extra white space is compressed out of the element.
    This is causing much grief for the people reading the documents and they have asked if I can retain the hard breaks.
    I've looked into the Structured Application and found nothing. I've looked at the ReadWrite Rules files in hopes I could map the hard break to a element of some kind, or something like that. I'm not finding any solutions.
    Is there a way to keep this information in the resulting XML file?
    Thanks,
    - mike

    Hello Mr. Hare,
    you might try the following:
    1. Adjust the template of your structapp to contain a variable named "hardreturn" whose definition is "\n" (without the quotiation marks).
    2. In your R/W-Rules, write: entity "hardreturn"is fm char 0x09;
    3. In every FM-Document you want to save as XML
    a. also add the variable
    b. assign the structapp
    4. ..and do the following
    a. insert the variable "hardreturn" somewhere and copy it into the clipboard, and delete the variable from your insertion point
    b. Search for "\p\p" (=two consecutive hard returns, i.e. an "empty line" or for "\x09" (= a soft return) and "change" "by pasting".
    The result should be a variable "hardreturn, wherever \p\p or \x09 was.
    If you save this as XML, the \x09 from the variable should survive as an entity.
    Hope this helps.
    With kind regards,
    Franz.
    [ excess signature removed by host ]

  • Using a Macro to add a Carriage Return after each data entry within all cells of an imported range of cells

    I have a macro that copies data from a Target workbook then pastes the data into a destination workbook.  I then wish to use lookups in the destination workbook to view specific data from the pasted range of data on a separate sheet. 
    The problem is, the cells that contain numbers from the pasted data have the green dogeared error flags associated with the cell. The only way I can make a lookup function work, is to go to each cell and manually enter a carriage return after each entry. 
    The code for the macro is given below.  What can be done so that the pasted data contains no errors associated with the number cells?  Or can a second macro be written to clean the data.  If so can you help me out?  Thanks in advance.
    Kindest Regards
    Sub ImportData()
     ' ImportData Macro allows user to select an Excel workbook (i.e. Orchestrate Excel Output),
     ' then copy & paste it into the MediaSpreadsheet.
        Dim wbk As Workbook
        Set wbk = Application.Run("MediaSpreadsheet_1.0.xlsm!OpenFile")
        If wbk Is Nothing Then
            Beep
            Exit Sub
        End If
        Set wbk = ActiveWorkbook
        Range("A9:S116").Copy
        Workbooks("MediaSpreadsheet_1.0.xlsm").Activate
        Sheets("OrchestrateData").Select
        Range("A1").Select
        ActiveSheet.Paste
        With Selection.Font
            .ColorIndex = xlAutomatic
            .TintAndShade = 0
        End With
        With Selection.Interior
            .Pattern = xlNone
            .TintAndShade = 0
            .PatternTintAndShade = 0
        End With
        Selection.Borders(xlDiagonalDown).LineStyle = xlNone
        Selection.Borders(xlDiagonalUp).LineStyle = xlNone
        Selection.Borders(xlEdgeLeft).LineStyle = xlNone
        Selection.Borders(xlEdgeTop).LineStyle = xlNone
        Selection.Borders(xlEdgeBottom).LineStyle = xlNone
        Selection.Borders(xlEdgeRight).LineStyle = xlNone
        Selection.Borders(xlInsideVertical).LineStyle = xlNone
        Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
        wbk.Close
        Sheets("MediaSchedule").Select
    End Sub
    DAPulliam64

    Hi DAPAugust64,
    The green "dogeared error flags" of the cells means that you paste numbers in these cells, but they're formated as Text.
    So you need to change the cells back to the correct format so that the lookup function works fine. You can simply call this method after pasting:
    ActiveSheet.Cells(1, 1).NumberFormat = "General"
    ActiveSheet.Cells(1, 1) = ActiveSheet.Cells(1, 1).Text
    Or use PasteSpecial method to paste the numbers as well as it's format:
    https://msdn.microsoft.com/en-us/library/office/ff837425.aspx
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Pdfs created on my iMac add hidden carriage returns after each word

    Hello Community,
    This problem exists on my iMac but not my wife's Powerbook.
    Whenever I created a pdf from Preview by printing and then selecting "save as pdf" I got a lovely looking pdf which I could send to anyone and they could view just fine.  However, if I or anyone else selected text from that pdf and pasted it into any other program, it came out with an exclamation point instead of the space between words which is, needless to say, quite undesirable.  Searching around, one thing that was suggested was clearing the font cache so I did this (several times).  It did indeed make a difference:  now instead of exclamation points a carriage return appears after every word!  Once again the pdf looks just fine, but when you copy and paste text from the pdf into any other text program this happens.
    So then I downloaded Adobe Acrobat (the one month fully functional trial program) and made pdfs with this program to see if that was the problem but, no, the same thing occurs.  So it really seems to be a strange glitch in my iMac and my system?
    Any advice would be greatly appreciated.
    Best regards,
    ---Norm

    There is no Flash player version 15... as in your code:
    <param name="swfversion" value="15.0.0.0" />
    For some reason Adobe thought it would be a good idea to target a Flash player version (15) as default.....which may be out a couple years in the future. Go figure!!!
    If you don't like player version 9, change to 10 or 11.... just not 15 (yet).
    Best wishes,
    Adninjastrator

  • HT4977 The reported solution does not work (add two carriage returns).

    When setting up my gmail account as an exchange accounts message which are only signed, are not validly signed. There is an smile.p7s attachment which isn't recognised as a valid signature.
    Some users report this is caused by a bad implementation of the Active Sync protocol in iOS, which isn't using the approptiate commands.
    Does anybody have a workaround?

    Hi,
    Did you find any solution to your issue?
    I am also having similar kind of issue. If you can guide me on this. I am describing my issue below:
    I need to add verification for field dock door of tcode LM05 using user exit MWMRF302.
    I have created 9302 screen in program SAPLXLRF and deleted ok_code from it, changed it to sub-screen.
    Then i have created a new entry in the spro (screen management) with screen variant 1.
    But i am unable to understand what code i need to write in EXIT_SAPLLMOB_520 so that verification of that particular field will take place.
    Also, do i need to code both EXIT_SAPLLMOB_210 and EXIT_SAPLLMOB_520?
    Can you please help me with this.
    Thanks,
    Archana

  • Add a carriage return in a .csv file

    I running the following command which works but I would like to format the output in the CSV file. The "SecondaryAddresses" field is where my issue is. The field contains multiple addresses as such:
    {[email protected], [email protected], [email protected]}
    Current output in .csv file.
    Desired output in .csv file.
    I want to be able to add a return into the .csv file so the data is in one cell.
    Get-Mailbox jblake -DomainController "DC01" -ResultSize Unlimited | Select-Object DisplayName,alias,PrimarySmtpAddress, @{Name=“SecondaryAddresses”;Expression={$_.EmailAddresses | Where-Object {$_.PrefixString -ceq “smtp”} | ForEach-Object
    {$_.SmtpAddress}}}
    Chris

    I think that is still not quite there, it is missing the filter on PrefixString.
    Get-Mailbox jblake -DomainController "DC01" -ResultSize Unlimited | Select-Object DisplayName,alias,PrimarySmtpAddress, @{Name=“SecondaryAddresses”;Expression={($_.EmailAddresses | Where-Object {$_.PrefixString -ceq "smtp"}).SmtpAddress -join "`n"}}
    Enclosing $_.EmailAddresses | Where-Object {$_.PrefixString -ceq "smtp"} in parenthesis lets us use the dot operator on the array that it returns. Accessing a property on an array that is actually a property on each of the objects in the array
    should return an array of those property values (an array of SmtpAddresses), which we can then -join with the newline character. Note that this feature of arrays was added in v3.0 so in case you're on an older version this wouldn't work.
    I also don't have the Exchange cmdlets, so I unfortunately I cannot test it either.

  • Carriage Return in Oracle

    I'm writing a to file and need to add a Carriage Return/New Line after every line. I've tried CHR(10) and CHR(13) and when opened in a Windows environment they both display an unrecognised character.
    Has anyone come across a similar problem or know what I'm doing wrong with this?
    Thanks
    Jay

    hello
    you need append both characters to the end of the line chr(13)||chr(10) not chr(10)||chr(13). 13 is carriage return, 10 is line feed and they are both needed on windows.
    hth

  • How do i add a newline or carriage return to make my xml file look pretty?

    Hi guys
    I'm writing an xml file with jsp, the problem is, it writes it in one big chunk of text. e.g.
    <start>hello, my name is joe</start><middle>I like trees</middle><end>boo</end>
    Now what I want to do is present this xml file in a decent manner,
    e.g.
    <start>hello my name is joe</start>
    <middle>i like trees</middle>
    <end>boo</end>
    i've tried
    xmlFile = "<start>Hello my name is joe</start>"+\n\r;
    and
    xmlFile ="<start>Hello my name is joe</start>"+"\n\r";
    neither work, can anyone provide me with some insight into how I can add a carriage return / new line to make my xml file look pretty?
    Many thanks for any responses!

    u r right <BR> tag will not work...
    I wrote following code to generate xml file and it works fine...U can try the same...
    try
    FileOutputStream fos = new FileOutputStream("c:\\temp.xml");
    String xmlString = "<root>\n<start>Hello my name is joe</start>"+"\n";
    xmlString = xmlString +"<middle>blah blah</middle>\n</root>";
    fos.write(xmlString.getBytes());
    fos.close();
    fos = null;
    catch(Exception e)
    e.printStackTrace();
    }

  • Converting Frame files to PDF adds carriage return in code snippets

    Our writing group is using FrameMaker 7.2 with Acrobat 9. The documentation we write includes code snippets. Conversion from Frame to PDF adds a carriage return to the end of any line of code. This causes any snippet containing a wrapped line to be incorrect if it is copied and pasted directly from the PDF.  Does anyone knopw if there's a fix for this?
    Thanks,
    George

    Dear Alexander,
    Thanks for the reply.
    In this I am using the FM 'CONVERT_ABAPSPOOLJOB_2_PDF'. I have checked the settings from SPAD that is also same in both servers for particular output device. But the patches are diffrennt in both the servers, the server from which layout is not coming properly having the high level patches in compare to the other server(which is working fine).

  • Write to spreadsheet adds carriage return

    I am using build array function to put together a number of strings and build an array of strings.  The build array is in a while loop.  A new line is added to the array every loop.  I am using write to spread sheet function to save the spreadsheet to a file with xls extension.  For some reason, a carriage return is inserted within the array.  The array has 9 columns and a carriage return is put after the fourth column.  I have not added this carriage return.  Does anyone know why write to spreadsheet might automatically add a carriage return and how to remove it?  
    Thank you!
    Solved!
    Go to Solution.

    Hi,
    I took your posted VI and compiled it to an exe.  I do not see the carriage return problem you are describing?
    If you compile the VI you attached, do you see the problem or is it only in the original main application (that you cannot share)?
    If the compiled exe works on your PC, does it also work on the 'different' computer where you see the issue with your original code?  
    -If it does work, then the issue must be in the source code for your original code.  Sometimes, if you re-size string constants, for example, it can be hard to see carriage return's.
    Another thing it could be perhaps, is if you are calling the "write spreadsheet" in two different places in your main code, then the way it works is it will write your two (different) input arrays to separate lines.  If it is as in your example VI though, there should be no carriage return in the "middle" of the array.
    For debug purposes, you could consider making a VI that takes a 1D string array input, iterates over each element in the array and searches for the carriage return character and gives an error/message on what iteration it found it, then you can back-track from there to see in the code responsible for making the string that went into that index.
    QFang
    CLD LabVIEW 7.1 to 2013

Maybe you are looking for

  • DC Web dynpro project is missing in the explorer

    Hi there, I was developing a web dynpro DC in which I had created components and also deployed it in the j2ee server and was running successfully. Surprisingly enough, I cannot see this project in my web dynpro explorer anymore. I was working with a

  • ORA-7445[qkarid()+872] error

    Hi, I am using Binary XML DB . Here is the DB banner info. Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production PL/SQL Release 11.2.0.1.0 - Production "CORE     11.2.0.1.0     Production" TNS for Linux: Version 11.2.0.1.0 - Pr

  • IMessage login problem on OSX Yosemite

    Hi. Since i have updated to OSX Yosemite, I cannot sign in to iMessages or Facetime from my macbook Air. could anybody please help me out to resolve this problem? Thanks.

  • Updating pattern swatch just got harder compared to CS5

    In CC (17.1) I find when I Option-drag artwork over an existing pattern swatch, the "hotspot" of the cursor has changed. Why? Instead of the hand being the hotspot, it's a little "+" sign to the right. It feels awkward and makes the update process le

  • Backup Planning

    Hi, Guys. Just need your comments on my backup plan changes. Since my database is now too big, I would like to make daily tablespace backup instead of weekend whole database backup. Suppose I will backup like this: Monday: SYSTEM + SYSAUX tablespace