Carriage returns in RTF export

Hello, one of my clients is complaining that RTF output has carriage returns at the end of each line, making him unable to copy and paste the text somewhere else and continue to work with it further. Can this be turned off and what options are available here? Thanks.
Here's sample output. This was a free-flowing paragraph in the database.
All matters listed hereunder constitute a Consent Agenda, are considered to be routine by the Board of
Supervisors and will be acted upon by a single roll call vote of the Board. There will be no separate
discussion of these items unless a member of the Board so requests, in which event the matter shall be
removed from the Consent Agenda and considered as a separate item.
\cf1\i All matters listed hereunder constitute a Consent Agenda, are considered to be routine by the Board of \par\pard\sl-231\i0\cf0\tx637     \cf1\i Supervisors and will be acted upon by a single roll call vote of the Board. There will be no separate \par\pard\sl-231\i0\cf0\tx637     \cf1\i discussion of these items unless a member of the Board so requests, in which event the matter shall be \par\pard\sl-231\i0\cf0\tx637     \cf1\i removed from the Consent Agenda and considered as a separate item.
I am using CR 2008 SP3 to troubleshoot this issue.
Please take a look at this file: http://software1.legistar.com/RTFProblem.zip - It contains the .rpt file with data, the problematic .rtf file with hard returns at the end of each line, and a screenshot of the problem.
A large project hinges on this one issue. Please help. Thanks.

This is something CR does to try to keep the report visually similar between formats. I don't know of any setting in CR that will alter this behavior.
The 2 options are...
1) Export as a .csv file. csv is a machine readable format that doesn't have any visual formatting.
2) Remove the carriage returns and line feeds from MS Word. The find & replace (Ctrl + h) can be used. In the "Find what:" window, enter ^p and leave the "Replace with:" blank. This will remove all of the CR & LFs.
HTH,
Jason

Similar Messages

  • Extra carriage returns in footnotes of exported RTF

    All documents containing footnotes in Indesign are exported with extra hard returns after each footnote when exporting to Word .rtf.
    I am using Indesign CS5 but this has always been the case since earlier versions of Indesign.
    Does anyone know a way to avoid this or of a way to fix it afterwards in Word. Search end replace for double paragraph marks in Word doesn't seem to be working in footnotes.

    The email is formatted poorly by the sender.
    The screen width for a PC is min 640x480, which is large enough to display the email with the extar carriage returns on every line.
    The  Blackberry has a much smaller resolution, even with smaller text (which you could try but I wouldn't count on).
    The BB removes extra CR/LF's (ie if you have three or four per line, it will only show one), but it isnt going to reformat the entire email.
    Especially since the email is generally formatted for a reason.
    The sender has not formatted the email (thatws an auto-reply email, right?) for small screens or mobile devices.
    If you open the email in outlook and then reduce the window size to 1/4 or smaller than you will see the exact same thing on the Outlook email...
    So, there is nothing you can do on the BB. Its the sender who needs to change their emails.
    Checked out my Blackberry FAQ's and Links to Needed Articles here
    http://darkeen.homelinux.com/index.php/Blackberryfaq

  • Exporting Text data from PHP to Oracle CLOB data (Carriage return - issue)

    This is my original text content in PHP - Data type - Longtext
    SECTION - 1
    This a test description.This a test description.
    This a test description.This a test description.
    This a test description. This a test description.I exported the above content from PHP as a SQL script file (insert into.. ) - export.sql [ insert into table_name (id, text_content) values (1, '') ]
    while exporting data from PHP table into export file.. it replaced the "Carriage return" with "\r\n\r\n" in the insert statement for text_content column
    When I run this INSERT statement in Oracle (for longtext, I have created a CLOB column in Oracle), the following text_content data is inserted into CLOB column in Oracle.
    SECTION - 2
    This a test description.This a test description.\r\n\r\nThis a test description.This a
    test description.\r\n\r\nThis a test description.This a test description.Now I have created a item named P1_TEXT_CONTENT of type TEXTAREA and try to fetch the CLOB data into this page item.
    BUT textarea displays the entire content including "\r\n\r\n" as mentioned in SECTION - 2
    I want to display the content in textarea (item - P1_TEXT_CONTENT) without "\r\n\r\n" same as the original content with "Carriage return" as mentioned in SECTION - 1
    What are the options we have?
    Thanks,
    Deepak

    DeepakJ wrote:
    I want to display the content in textarea (item - P1_TEXT_CONTENT) without "\r\n\r\n" same as the original content with "Carriage return" as mentioned in SECTION - 1
    What are the options we have?Run an update on the Oracle table following the inserts to replace the escaped CR/LFs with real ones:
    update foo
    set clob_column = replace(clob_column, '\r\n', chr(13) || chr(10));You might want to experiment to see which characters are actually necessary. As an OS X/Linux user I'd probably just use a single LF chr(10).

  • RTF Template - Multiple Groups, carriage returns/line breaks

    Hello - I developed an .RTF Word template with multiple groups. What I want to do is suppress a group heading and the associated new line generated for that group if the group value is blank. I tried IF statements, but I still see extra white lines in my output. Any idea? I also tried putting NO carriage returns in the Word template, and that didn't work.

    You can use a filter at the group level to check if the group value is blank..
    Something like this example: <?for-each-group:./Listofcity/city[./CityName !=''];CityName?>
    Provide information about your data structure/xml if you need the exact syntax.
    Thanks,
    Bipuser

  • CR2008 exports to editable word -- carriage return on each line

    Hi,
    I exported a CR2008 report to "editable" WORD format.  However, we found there is a "carriage return"(CR)  at the end of each line which is not expected in a paragraph, is this the normal behavior of Crystal Report, is there a workaround ?
    Any idea and suggestion is appreciated. Thanks.
    Regards,
    Gloria

    Hi Gloria
    Can you please update us with the following information:
    What is the database that you are using and its version?
    What is the field type?(String,memo,..etc.)
    Have you installed Service Pack 1 for Crystal Reports 2008?
    Regards
    Ashwini Yadav

  • Help needed with Carriage Return in Unicode system

    Hi Experts,
    we have an issue with one of our programs regarding the carriage return that is used when creating a csv file. This issue has only came about because of the recent upgrade to ECC6.
    The main change to the program was the redefinition of the line feed variable.
    Existing statement was --> DATA: v_lf TYPE x VALUE '0D'.
    This was then replaced with
    New statement --> DATA: v_lf type c VALUE cl_abap_char_utilities=>cr_lf.
    Since this change has been implemented, the csv file that is created and sent on as an attachment via the function SO_NEW_DOCUMENT_ATT_SEND_API1 is now not displayed correctly.
    When looking at the attachment in trn SOST, a message is also displayed saying the file is not in a recognizable format when selecting the file to view.
    The hex value for cl_abap_char_utilities=>cr_lf is 000D000A and this seems to be causing the issue.
    I've also tried using Function FI_DME_CHARATERS as I only really want to use the CR. However, the hex value for this is 000D and not 0D.
    Is there any way of converting this to have a hex value of 0D?
    Thanks in advance,
    Chris

    HI,
    Sorry it is not the CONTENTS_TXT it is CONTENTS_BIN. Instead of CONTENTS_BIN you need to pass to CONTENTS_HEX
    Check my Code..i have used the CONTENTS_HEX instead of CONTENTS_BIN
    DATA: l_tab_lines TYPE i,
            l_string TYPE char300,
            l_line TYPE string.
      CONSTANTS : l_c_255(255)  TYPE c VALUE '255',
                  l_c_txt(3)    TYPE c VALUE 'TXT'.
      DATA: lt_reclist  TYPE STANDARD TABLE OF somlreci1,       "Recipients
            lt_objpack  TYPE STANDARD TABLE OF sopcklsti1,
            lt_objhead  TYPE STANDARD TABLE OF solisti1,
            lt_objtxt   TYPE STANDARD TABLE OF solisti1,     "Body of EMail
            lt_objbin   TYPE STANDARD TABLE OF solisti1."Attachment of EMail
      DATA: l_doc_chng TYPE sodocchgi1,     "attributes of document to send
            l_reclist  LIKE LINE OF lt_reclist,
            l_objpack  LIKE LINE OF lt_objpack,
            l_obj      LIKE LINE OF lt_objhead.
      DATA :
        l_hex LIKE solix,
        lt_contents_hex LIKE STANDARD TABLE OF solix ,
        conv TYPE REF TO cl_abap_conv_out_ce,
        l_buffer TYPE xstring,
        l_hexa(510) TYPE x.
    * Completing the recipient list
      l_reclist-receiver = p_emailid.
      l_reclist-express  = 'X'.
      l_reclist-rec_type = 'U'.
      APPEND l_reclist TO lt_reclist.
      CLEAR  l_reclist.
    * Body of Email Message
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.       " Blank line
      l_obj-line = '<html>'.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line = '<body>'.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line =  '<p><code>Hello,</p></code>'(t04).
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line = cl_abap_char_utilities=>newline.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.       " Blank line
      CONCATENATE
       '<p><code>'(f01)
       'Please click the link to access the Confirmation Form.'(t01)
       'Kindly complete the same and return it to the HR contact 15 days' &
       ' prior to the date of confirmation of the employee.'(t02)
       '</p></code>'(f02) INTO l_obj-line SEPARATED BY space.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line = cl_abap_char_utilities=>newline.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.       " Blank line
      CONCATENATE '<a href="' text-l01 text-l02 '">'
             INTO l_obj-line.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      CONCATENATE  '<p><code>'(f01)
                   'Link to Confirmation Forms'(034)
                   '</p></code>'(f02)
                   '</a>'
             INTO l_obj-line.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line = cl_abap_char_utilities=>newline.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.       " Blank line
      l_obj-line = '<p><code>The details of the employees ' &
                   'are as follows:</p></code>'(017).
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line = cl_abap_char_utilities=>newline.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.       " Blank line
    * Table headings in the Mail Body
      l_obj-line =  '<table border="1">'.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line =  '<tr>'.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line =   '<th><p><code>Name</p></code></th>'(030).
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line =  '<th><p><code>Department</p></code></th>'(031).
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line =  '<th><p><code>DOJ</p></code></th>'(032).
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line =  '<th><p><code>Confirmation Date</p></code></th>'(033).
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line =  '</tr>'.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
    ** Body of Email Message
    * Email Attachment
    * Append headings
      CONCATENATE 'Employee No.'(002)
                  'Employee Group'(016)
                  'Employee Name'(001)
                  'Designation'(003)
                  'Joining Date'(004)
                  'Department'(005)
                  'Branch/Location'(006)
                  'Unit'(007)
                  'Confirmation Due'(008)
                  'Form sent on'(009)
                  'Form Return by'(010)
                  'Employee Group'(016)
                  'Qualification'(012)
                  'Trainee Category'(013)
                INTO l_string
           SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
      APPEND l_string TO lt_objbin.
      CLEAR l_string.
      APPEND INITIAL LINE TO lt_objbin.
      LOOP AT p_emp_details INTO i_emp_details_line.
        CONCATENATE i_emp_details_line-pnalt
                    i_emp_details_line-egroup
                    i_emp_details_line-ename
                    i_emp_details_line-stext
                    i_emp_details_line-srvdt
                    i_emp_details_line-ltext
                    i_emp_details_line-pbtxt
                    i_emp_details_line-btrtx
                    i_emp_details_line-mndat
                    i_emp_details_line-fsdate
                    i_emp_details_line-frdate
                    i_emp_details_line-egroup
                    i_emp_details_line-ptext
                    i_emp_details_line-ftext
               INTO l_string
          SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
        APPEND l_string TO lt_objbin.
        CLEAR l_string.
        l_obj-line =  '<tr>'.
        APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
        CONCATENATE '<td>' '<p><code>'(f01)
                     i_emp_details_line-ename '</p></code>'(f02) '</td>'
                     INTO l_string.
        APPEND l_string TO lt_objtxt.   CLEAR l_string.
        CONCATENATE '<td>' '<p><code>'(f01)
                    i_emp_details_line-ltext '</p></code>'(f02) '</td>'
                    INTO l_string.
        APPEND l_string TO lt_objtxt.   CLEAR l_string.
        CONCATENATE '<td>' '<p><code>'(f01)
                    i_emp_details_line-srvdt '</p></code>'(f02) '</td>'
                    INTO l_string.
        APPEND l_string TO lt_objtxt.   CLEAR l_string.
        CONCATENATE '<td>' '<p><code>'(f01)
                    i_emp_details_line-mndat '</p></code>'(f02) '</td>'
                    INTO l_string.
        APPEND l_string TO lt_objtxt.   CLEAR l_string.
        l_obj-line =  '</tr>'.
        APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      ENDLOOP.
      l_obj-line = '  </table>'.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line = '</body>'.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      l_obj-line = '</html>'.
      APPEND l_obj TO lt_objtxt.   CLEAR l_obj.
      IF r_cprob EQ 'X'.
        l_string = 'Completion of probation List'(018).
      ELSE.
        l_string = 'Completion of extension of probation List'(035).
      ENDIF.
      APPEND l_string TO lt_objhead.
    * APPEND object_header.
      CALL FUNCTION 'SO_RAW_TO_RTF'
        TABLES
          objcont_old = lt_objbin
          objcont_new = lt_objbin.
      LOOP AT lt_objbin INTO l_line.
       conv = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' endian = 'B').
        CALL METHOD conv->write( data = l_line ).
        l_buffer = conv->get_buffer( ).
        MOVE l_buffer TO l_hexa.
        MOVE l_hexa TO l_hex-line.
        APPEND l_hex TO lt_contents_hex.
      ENDLOOP.
    * File name for attachment
      CONCATENATE 'Completion of probation List'(018)
                   sy-datum '.XLS' INTO l_obj SEPARATED BY space.
      APPEND l_obj TO lt_objhead.
    * Email Body Details
      CLEAR l_tab_lines.
      DESCRIBE TABLE lt_objtxt LINES l_tab_lines.
      l_doc_chng-doc_size = ( l_tab_lines - 1 ) * 255 +
                              STRLEN( l_string ).  "size of doc in bytes
      l_doc_chng-obj_name = sy-repid.
      l_doc_chng-obj_langu = sy-langu.
      l_doc_chng-obj_descr = l_string.
      l_doc_chng-sensitivty = 'P'.          "  Send mail as a confidential
      l_objpack-head_start = 1.
      l_objpack-head_num   = 1.
      l_objpack-body_start = 1.
      l_objpack-body_num   = l_tab_lines.
      l_objpack-doc_type   = 'HTML'. "l_c_txt.
      APPEND l_objpack TO lt_objpack.
      CLEAR  l_objpack.
    * Email Attachment Details
      CLEAR l_tab_lines.
      DESCRIBE TABLE lt_objbin LINES l_tab_lines.
    * Creation of the entry for the compressed attachment
      l_objpack-transf_bin = 'X'.
      l_objpack-head_start = 1.
      l_objpack-head_num   = 1.
      l_objpack-body_start = 1.
      l_objpack-doc_type   = 'XLS'.
      l_objpack-obj_name   = l_obj.
      l_objpack-obj_descr  = l_obj.
      l_objpack-body_num   = l_tab_lines.
      l_objpack-doc_size   = l_tab_lines * l_c_255.
      APPEND l_objpack TO lt_objpack.
      CLEAR  l_objpack.
    * Send the document
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = l_doc_chng
          put_in_outbox              = ' '
          commit_work                = 'X'
        TABLES
          packing_list               = lt_objpack
          object_header              = lt_objhead
    *      contents_bin               = lt_objbin
          contents_txt               = lt_objtxt
          contents_hex               = lt_contents_hex
          receivers                  = lt_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.

  • Building in carriage returns using Report Query

    I am using Report Querys and Report Layouts. I am trying to build in some carriage returns that will be recognized in my rtf template. I tried using 'chr(10)', br's etc, but it doesn't work. It prints the characters instead of doing the carriage return. Am Imissing something?
    <COMMENTS01>MATHEMATICS (FROST, J): Seldom hands homework in on time Seldom comes to class on time. Retention Possible William works well on patterns chr(10)MEDIA (HATTER, M): Does well on tests Shows a desire to learn chr(10)READING (ANDERSON, L): Does well on tests Does well on quizes These are the notes for Fluency These are the notes for comprehension. chr(10)SCIENCE (BLASK, M): Elementary Code 1 Has trouble with Jupiter. chr(10)</COMMENTS01>

    Bob,
    The string literal 'chr(10)' will not help you much.
    select 'mystring'||'chr(10)'||'mystring' from dual; -- returns 'mystringchr(10)mystring'
    select 'mystring'|| chr(10) ||'mystring' from dual; -- returns 'mystring
    mystring'Cheers,
    Tyson Jouglet

  • Cl_gui_frontend_services= gui_download without carriage return

    Hi,
    Is there a way to get download a file to PC that way, that in the end of every lines there is a carriege return character except the last one? (Special format required by az external bank application)
    I tried to add carriage return to every lines, except the last one and use cl_gui_frontend_services=>gui_download.
    Although the "write_lf" parameter is set to space, the # is still inserted in the end of the last lines.
    Any suggestion, idea?
    Thanks in advance,
    Peter

    Hi
    When second time you call method just add the following
    CALL METHOD cl_gui_frontend_services=>gui_download
         EXPORTING
           filename                  = v_value
           append                    = 'X'        <------- Just add this line

  • What do you enter for a Carriage Return in Find&Replace?

    I'm using TextEdit to find and replace all instances of a string in an exported .txt with Carriage Returns (CRs). Only, I can't figure what to press in the 'Replace with:' field to tell TextEdit that I want the CR to go in there. Obviously, if I just press Enter, it will just Find then next occurrence of the 'Find' string.
    Any tips?
    What I have been doing as a clumsy work-around is type a CR in the .txt file, and then copy-paste in into the 'Replace with:' field. Only I thought maybe there's a cleverer way of doing it.

    Alex Zachopoulos wrote:
    What I have been doing as a clumsy work-around is type a CR in the .txt file, and then copy-paste in into the 'Replace with:' field.
    I don't know of a better way to initially set up the Carriage Return in the "Replace with:" field. However once you have done that, you can get it back from the drop-down list associated with that field (it will appear there as a blank line).

  • How to load data with carriage return through DRM action script ?

    Hello,
    We are using DRM to manage Essbase metadata. These metadata contain a field for member formula.
    Currently it's a string data type property in DRM so we can't use carriage return and our formula are really hard to read.
    But DRM support other data type property : memo or formatted memo where we can use carriage return.
    Then in the export file, we have change the record delimiter to an other character than CRLF
    Our issue : we are regularly using action script to load new metadata => How to load data properties with carriage return using action script ? There is no option to change the record delimiter.
    Thanks!

    Hello Sandeep
    here what I want to do through action script : loading a formula that use more on than one line:
    Here, I write my formula using 4 lines but action script cannot load since one line = 1 record.
    ChangeProp|Version_name|Hier_name|Node_name|Formula|@round(
    qty*price
    *m05*fy13

  • Receiving attachments with carriage return / enter after filename extension

    Hello All,
    For a while already I am seeing carriage return / enter / newline after the filename extension of (some of) my attachments.
    Clicking the attachment fails to open it. The only remedy I have is to save the attachment, navigate to it, click the filename, and remove the extra newline after the filename.
    It then asks me if i want to use the new extension, for example
    Would you like to use
    ".pdf"
    instead of
    ".pdf
    (I had to cut up the sentence above to make the bogus CR visible)
    After agreeing the file works fine and opens normally ( + Icon changes back to preview icon).
    The file shows up as "symposium 2010.pdf??" in Terminal.
    and
    /Users/vincent/Desktop/symposium\ 2010.pdf
    when pasted in vi - yes the third white line is included.
    Did anyone see/solve this issue before? Wading through the forum here did not turn up a solution...
    Regards, Vincent

    Hi Thomas,
    I am getting following error:
    Only one top level element is allowed in an XML document. Error processing resource 'file:///C:/Users/guptavis/AppData/Loca...
    <SupportCaseID>0055000018</SupportCaseID>
    -^
    for the below code
    DATA: LV_NEWLINE TYPE ABAP_CR_LF.
    LV_NEWLINE = CL_ABAP_CHAR_UTILITIES=>CR_LF.
    CONCATENATE
      V_XML '<TimeStamp>' wa_XML-TimeStamp '</TimeStamp>' INTO V_XML.
    CONCATENATE
      V_XML lv_newline INTO V_XML.
    CONCATENATE
      V_XML '<SupportCaseID>' wa_XML-SupportCaseID '</SupportCaseID>' INTO V_XML.
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
      EXPORTING
        TEXT           = V_XML
      MIMETYPE       = ' '
      ENCODING       =
    IMPORTING
       BUFFER         =  V_XML1
    EXCEPTIONS
       FAILED         = 1
       OTHERS         = 2.
    CALL METHOD CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE
      EXPORTING
        I_FILENAME      = 'C:/TEMP/TEST.XML'
        I_CONTENT       = V_XML1
        I_MIME_TYPE     = 'XML'.
    Do you have anyu idea how can I rectify this error. As per my requirement I have conncatinate so many more lines.
    Regards,
    Vishal.

  • 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 ]

  • Importing XML Text files with Indesign friendly 'Carriage Returns'

    Hi,
    I have a question wrt importing XML into Indesign.  I have my text stored in Excel (Fig A) and intend to export as an XML file where each line will represent each page.  However, my first attempt failed to treat the 'carriage returns' as I'd envisaged:
    The 'carriage returns' used within an Excel cell (ALT-ENTER) are maintained when transforming to a CSV file (Fig B).  However, when converting to an XML file, the conversion only takes place on a line by line basis and hence the XML file becomes incomplete (Fig C).
    So, it appears I need to make sure that the CSV file contains one line per entry, while also maintaining the actual carriage returns in my source spreadsheet and for Indesign to recognise them.  In order to do this, I'll need to substitute the 'carriage returns' in my excel column to be represented by a new set of characters.  My question is how can I let Indesign know to recognise this set of characters to be converted to a carriage return, when importing text.
    For example, if this set of characters was '%%%%%%', then my new csv file would look like Figure D and the XML would be produced correctly, like Figure E.  Then importing this XML file to InDesign, the carriage returns would automatically be reinstated, hopefully.
    I hope someone can help me as I am only starting out in Indesign and feel Im running before I can walk by venturing into the XML/Indesign arena too soon.
    Best Regards
    Luke

    Hi,
    Thanks for all the responses.
    With regard to XML, it could well be an issue has crept in because I am using another utility to convert my csv's to xml and maybe there are better options out there. I will take a look for other utilities and try that (Its not possible from Excel easily, even though there is an option to save as an XML file).
    Secondly, because the XML was readable by internet explorer, I assumed it had a satisfactory standard XML format which would be accepted by any program, including InDesign.  This proved true, since the XML file i generated was actually recognised by my Indesign document and populated the tags correctly, albeit without any carriage returns. 
    When I save my excel sheet as a csv, it does actually hold the carriage returns causing multiple lines per entry, hence why I need to substitute the actual carriage returns in my excel sheet to a alternative character set so that the entry remains on one line.
    Re: Double quotes on text fields.  Im sorry, I didnt realise I had commas in my sample csv example.
    I should have corrected it, but I intend on using semi-colons as my csv delimiter and don't intend on having semi-colons in my excel sheet itself, so I possibly won't need any double-quotes.
    So, it looks like this is what I need to do ;
    i)   Add a column in Excel which substitutes all the carriage returns with a line break identifier (^n).
    ii)  Convert Excel file to a semi-colon csv holding this new column,
    iii) Convert csv file to XML using a good CSV->XML utility,
    iv)  Add the respective XML tags to my INDD document,
    v)   Add a GREP rule which does a find/replace on all instances of ^n and replace with a line break,
    vi)  Import the XML file,
    vii) Apply the find/replace GREP rule on the whole document. Carriage returns on my text fields should be consistent with my original excel sheet.
    Thanks for all your help fellas.  Will report on how I get on once Im done.
    Best Regards
    L

  • Insert a Carriage Return in template

    Hello All,
    I need to replace a character '#' with carriage return in form field of RTF Template, Is it possible to do it. I am using XML publisher 5.0.
    Eg: <SAMPLE>123#345#567</SAMPLE>
    Output:
    <SAMPLE>123
    345
    567</SAMPLE>
    Your response is appreciated.

    111 <?xdoxslt:chr(10)?>2222will give you the new line character,
    in-between 111 and 2222 there will be in new line.
    http://winrichman.blogspot.com/search/label/BIP%20xsl%20extended%20function
    But you need latest version for this :)
    if am not wrong, this function was introduced above 10.1.3.3.+
    latest BIP EBS version should have this extended function too.

  • RTF text with background colour - formatting lost in editable RTF export

    Hi
    I have designed a report in CR2008 using XSD datasource.
    I have a field which returns a RTF text. The text comes out correctly when I run the report. 
    Scenario:
    1.Background colour (eg Yellow) has been applied to the field
    2.RTF text contains paragraph breaks
    Result
    The background appears for each paragraph and where there a para break, there is white space. In other words, I want the background colour to appear for the entire field. Right now, it appears odd because I have white spaces between each paragraph with the background colour for each paragraph
    Example:
    Text is as below (with RTF coding)
    In a bad mood? Don't worry   according to research, it's good for you.
    An Australian psychology expert who has been studying emotions has found being grumpy makes us think more clearly.
    In contrast to those annoying happy types, miserable people are better at decision making and less gullible, his experiments showed.
    While cheerfulness fosters creativity, gloominess breeds attentiveness and careful thinking, Professor Joe Forgas told Australian Science Magazine.
    My export type is Editable RTF. The background colour is maintained when you choose Word for Windows option or PDF (but this is not what I want to use in the report). Can the background be maintained for Editable RTF? Is there a work around for this problem?
    Thanks

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

Maybe you are looking for