Ability to add the carriage return character

Hi all

I have to add the characters return at the end of each paragraph.  I found insertTextAsContent (using: {String |}) SpecialCharacters} ( position: XMLElementPosition), but do not know how to use this function. I think that in this method only accepts the position as an XML element.

How to use this feature to accomplish my task?

Use: InDesign CS4/Javascript/Windows.

Kind regards

Karpanai

you could do: string = "\r";

\r is a carriage return, and \n is a newline

Tags: InDesign

Similar Questions

  • (AS) Select the text of the paragraph without bringing out the carriage return

    (AS) Select the text of the paragraph without bringing out the carriage return character.

    I need help to select a paragraph in a story.
    The selection does not contain a 'return' (ASCII number 13 ")

    My current sample is as follows:
    -example assumes that the insertion point is already placed in a specific paragraph.

    Tell application "Adobe InDesign CS3"
    activate
    theDoc Set to the active document
    say theDoc
    Select the paragraph 1 of the selection
    end tell--theDoc
    end tell--app

    Sounds simple... The example above to select my paragraph selected.

    but he also chose the carriage return also. How would I go to do this?

    Any advice would be helpful!

    Thank you!

    Try:

    Select text in character-2 of paragraph 1 of the selection of character 1

  • Replace the carriage return or new line with a table space

    Hello

    I want to replace the carriage return or new line with space in my column of the database.

    To do this, I'm using this query:

    Select replace (replace (Comments, chr (10),' '), Chr (13),' ') OF Comments_Master

    Comments_Master is the name of the table and comments is column that contains carriage return or new line.

    But this query works as expected.

    Once I run this query and run the query again "select * FROM Comments_Master", transport return and new line still exist.

    Please let me know what is wrong with this query?

    You write that data back you? This example shows that your sql should work. I thinnk the query that you just described is the updated one below.

    create table blah (text varchar2 (100));

    insert into bla values (' it's multi)

    line of text ");"

    Select * from blah.

    Select replace (replace (text, chr (10),' '), Chr (13),' ') of bla.

    Update text bla = replace (replace (text, chr (10),' '), Chr (13),' ');

    Select * from blah.

  • CFFILE READ xml file removes the carriage returns

    When I use CFFILE to READ a XML file (in order to get to the XMLPARSE step), it deletes all the outside between the carriage returns.

    My simple order of action CFFILE = 'read' file variable = "" #tempFile # "="XMLData"results, of course, in the XMLDATA variable." When I've got CFOUTPUT this value, all the transport returns have disappeared.

    In the original raw XML file, there is a section as such:

    < inspection_comment comment_type = '0' > missing tag.

    Channelled to the rear. d < / inspection_comment >

    In other words, there are in fact two combinations of chr (13) chr (10).  Yet, after the CFFILE READING, I find myself with

    Missing tag. Channelled to the rear. (d)

    and no carriage returns whatsoever.   It is a natural phenomenon, because it is an XML file, or I just don't hold my tongue right?

    Thank you!  RLS

    Carriage returns are not visible in html. Make sure that you use

    balises ou quelque chose de similaire.

  • Remove the carriage returns

    I'm trying to import a 8 column .csv file into my database column 7A unfortunately a carriage return at the end that causes CF raise error, 'Incorrect number of columns.

    How can I get rid of the carriage returns when importing?

    I suppose that, by using the parameter "name" you try to treat the file as a query. That's why you get the error. You might be better to try to treat it as a block of text.

    Get rid of the name and the content of the file will be in the CFHTTP variable. FileContent. You will need to develop a function to browse the file and analyze the content. Each record has a CR in column 7, for example, could you retrieve each record by searching every second CR. Then you treat as a list delimited by commas.

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

    I have a listBox with 15 values. This list box is linked to a text box. The text box print only selected items in the list box (thanks try67 for aid put in place). Now I want to do is have each of the items that are selected to appear separately instead of having one continuous line. I think what I have to do is add a transport returne (or two) between each selected item. Here is the code I have for the custom calculation script

    var v = this.getField("DiagnosisList").value;

    If (typeof v == 'string') event.value = v;

    else event.value = v.join (",");

    I triend/r/n addition but I keep getting syntax error. Thank you for any assistance.

    Replace this:

    v.Join (",");

    With this:

    v.Join ("\r");

  • To add a carriage return in paragraph styles

    Hello. I'm a mess. I have a large amount of data from an xml source. I need to quickly add carriage returns properly across it so that paragraph styles can be differentiated. I use tags manually mapped to styles to do this.

    In the transport order returns am I right to think that I can add a GREP style for each style of Pará, and that it will be the direction of the end of Pará through the position of end of each tag marker? If that's the case, what GREP expressionlook would like that I can automate locate the end of a tag/para style so that I can add ~ b for her?

    With gratitude!

    [French]

  • find sql_id using the sql statement, including the carriage return and tab...

    Hello. all.

    I wonder how to find sql_id using a sql statement, including transport retrun and tab space multiple.
    To be more precise,

    My sql is:

    Select
    col_a,
    col_b,
    ..
    ..

    I usually use the following query to find the sql_id

    Select sql_id in v$ sql where sql_text like 'MY SQL STATEMENT %.

    When MY SQL STATEMENT includes carriage return and tab space multiple, how can I do?

    Thanks in advance.
    Best regards.

    Hello

    Did you look at regular expressions? Use regexp_like instead of as.

    http://www.Stanford.edu/dept/ITSS/docs/Oracle/10G/server.101/b10759/conditions018.htm

    Kind regards

  • Remove the carriage returns in the text in an oracle SQL table column

    Hello

    Someone knows how to remove carriage returns in a text column in an Oracle table
    using SQL. So far, I have:

    Replace (text_field, Chr (13),' ')


    but this is ignored.

    (We use db 10g (enterprise Edition Release 10.2.0.4.0) and SQL * more 10.2.0.1.0)

    I would be very grateful for any help.

    -Mark

    How does the following:

    UPDATE table_name SET col_name = REPLACE (col_name, Chr (13), ");

    But if your new line is CR + LF, then use REPLACE (col_name, Chr (13) + Chr (10), ")

  • Regular expression to remove a single carriage return character

    Hi all

    What is the regular expression to remove only one character to return to a text string. I have something like this:

    1

    (two returns)

    2

    and I want to delete only one of the characters turn it over so I'll go

    1
    2 (one after the other

    I know / r but ot deletes all of the text string.

    Thanks a lot for any help

    Try something like:
    (in my message window):
    s = "a" & RETURN & RETURN & "two".
    placed s
    l = [s]
    put re_replace (l, "(?)")<=\r)\r", "g",="">
    Place the [1]
    (exit):
    -"a".

    two ".
    -1
    -"a".
    two ".

    I don't know how effective the situation described above could be for research, but
    You can also try:
    put re_replace (l, "\r\r", "g", RETURN)
    or:
    put re_replace (l, "\r{2"}, "g", RETURN)
    However, these last 2 only work in the situation where there
    exactly 2 returns you want to replace with a single DECLARATION - the first
    replaces any number of multiple returns with one RETURN

    It is possibly more effective than the first - it will replace again
    all multiple with a single; but it will unnecessarily replace one
    RETURN character with one character in RETURN - but I'm not a regular expression
    Expert:
    put re_replace (l, "\r+", "g", RETURN)

  • How to add a carriage return

    Hello

    How to add a newline after Type of survey, so that the weather channel will start in the column.

    Thank you

    Steve

    try something like the following project. (not tested, so modify as needed).

  • Ability to add the owner/3rd party Audio out the Audio preset?

    Is it possible to add your own .wav or mp3 files directly in the Adobe Premiere folder where are audio effects?

    I would like to have loaded on the program directly instead of add them on my media folder, so I KNOW what I'm working with. (For example the sounds I've created / download when I click Audio at the bottom of the program and have as an option)

    Thank you!

    dchi

    This is suggested by how to add sounds user displayed below first elements 13/13.1 Windows Audio tab/sound effects.

    First Elements ATR troubleshooting: EP 13 / 13.1: adding sounds user under the Audio tab

    I have proof it will read once again in the morning morning. Can't wait to see if this is what works for you.

    Thank you.

    RTA

  • Ability to add the circle to autodial

    Hello

    I would like to add numbering to a bit of the text:

    Example:

    1 elihfef

    2 afhef [qwfoh

    3 efhwe

    Does anyone know if it is possible to place the figures in the circle

    example numbering.jpg

    Thanks in advance

    Björn

  • Add a carriage return in an alert box

    Hello

    I have a request for the user to display this alert box in the format below:

    ATTENTION: The owner's name has changed on this ship.
    Current name: xxxxxxx:
    New name: yyyyyyy

    Please confirm or deny that there is a change of ownership.

    Confirm and Deny are two buttons.

    How can I insert a distribution c return at the end of each line of text to the text looks so in the alert box? I can get it to wrap, but it doesn't look good
    the button "Confirm" and "Deny" is adjustable in different colors?

    Thank you!

    Use Chr (10).

    For example:
    v_alert: = "Attention: the owner's name has changed on this ship.' |" Chr (10) | ' Current name: ' | etc...

  • replace the carriage return, displaying the output on a single line

    [oracle@ccoshs02xvdbs01 ~] $ sqlplus deploy_ctl/deploy_ctl

    SQL * more: Production version 11.2.0.1.0 on Mon Mar 28 10:21:05 2011

    Copyright (c) 1982, 2009, Oracle. All rights reserved.


    Connected to:
    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    With partitioning, OLAP, Data Mining and Real Application Testing options


    Modified session.

    10:21:05 SQL > insert into test (b) values ("this is stop
    10:21:38 2 space are now ');

    1 line of creation.

    10:21:47 SQL > commit;

    Validation complete.

    10:21:49 SQL > select test b where b as "this % ';

    B
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    It is stop
    space wear now


    10:22:07 SQL > select replace (b, chr (13)) of the test where b as "this % ';

    REPLACE (B, CHR (13))
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    It is stop
    space wear now


    10:22:56 SQL > select replace (b, chr (13), chr (32)) test fix where b as "this % ';

    DIFFICULTY
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    It is stop
    space wear now


    10:24:19 SQL >


    I would lilke to display on the same line.

    Thank you.

    Hello

    SQL> select translate(b,chr(13)||chr(10),chr(32)) fix from test where b like 'this%';
    
    FIX
    ----------------------------------------------------------------------------------------------------
    this is stopspace now carry on
    
    SQL> select translate(b,chr(13)||chr(10),' ') fix from test where b like 'this%';
    
    FIX
    ----------------------------------------------------------------------------------------------------
    this is stopspace now carry on
    

    -Pavan Kumar N

Maybe you are looking for

  • Satellite A210 - heating and BIOS update problem

    My aunt was having problems with his A210, so she bought herself a new and gave me the old one. The problems that she has been seen was the computer kept stopping at random. I think it's an overheating problem because the laptop runs quite hot. The B

  • Stop the auto-answer Elite Silver

    How to stop an entire head auto-répondre incoming calls? When he receives calls the voice begins to announce the call, but then it stops before finishing announcing incoming call number and establishes the call without notice. Is this normal?

  • Y50-70: can not enter the BIOS over and cannot find a second hdmi monitor that I have already

    First problem is that I tried after a while to get into the BIOS (have the latest version of the BIOS lenovo offers) and could not get with any of the known keys. Delete and F2 go to the windows start menu, F8 goes in the hard disk boot menu and F12

  • E4200: no WAN access, can't Flash firmware

    Hey all,. I got my E4200v1 by yesterday and the installation was easy enough... Apart from two problems: 1. He's not through an internet connection. I use a de Vigor120 ADSL2 modem that connects to the internet just fine. When I plug in the router an

  • Connect to VPN:Error 691

    I have connected to before VPN with no errors but suddenly I get error 691 and I can't solve it. I have try several (.pbk) VPN connection. What should I do?