Dreamweaver moves my carriage returns?

Dreamweaver seems to be moving my carriage returns.  When I put paragraph text inside a span, I usually put a carriage return (i.e. hit "Enter") before and after the span tags so that they are easy to see/find in the file, and are aligned.  If I open up the file in a text editor, it appears as I typed it, but in Dreamweaver the carriage return displays in a different place than where I put it.  And word wrap is not on.
Example, as typed and saved:
text text text text text text text text text text
<span class="highlight">This is an example</span>
text text text text text text text text text text
As displayed in Dreamweaver the next time I open the file:
text text text text text text text text text text <span class="highlight">This
is an example</span>text text text text text text text text text text
In DW I will go back in and "fix" everything, only to have to messed up again the next time I open the file.
Can anyone help with this?  Thanks.

Edit > Preferences > Code Format > Tag Editor.  See screenshot.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com

Similar Messages

  • Please explain me how I can use Form feed(\f) and Carriage return(\r)

    what is Form feed(\f) and Carriage return(\r)?
    Please explain to me.
    Thank you.

    These control characters aren't used much these days except that if you example a Windows or MSDOS text file in a binary editor you'll find each line ends with "\r\n". However when reading or writing text through classes these carriage returns will be added and removed automatically so your program doesn't see them.
    The controlls date back to teletype machines which operated rather like typewriters. Cariage return, as it's name implied, caused the print head to move back to the start of the line, line feed advanced a line (without, necessarilly, returning the carriage) and formfeed skipped to the next page.
    Newline on these machines was always "return, linefeed" because executing the carriage return on these machine could take too long. The early machines had only a single character buffer so that they had to executed the characters as quickly as they arrived. So doing the linefeed after the carriage return gave the carriage more time to return. On some teletypes if you did "linefeed, return" then the first character of the new line would often be printed somewhere in the middle of the line.
    This is the origin of the MSDOS/Windows end of line sequence.
    Many printers will still respect formfeed if printing is direct. Some will take carriage return without linefeed to allow you to start again overprinting the same line.
    However printing, these days, is seldom direct but done in bitmap form.

  • Problem with "carriage Return" or "Line Feed" in a table

    Hello,
    I need help with the function Zeichen(), so called it in german, I'm not sure if it is char() in english.
    In Pages Version 4.0.1 (746) I've created a table in Pages with this function to make an "carriage Return" in a cell.
    Here an example: { ="Hello" & Zeichen(10) & "World" }, in the cell is now:
    | Hello |
    | World |
    But in Pages Version 4.0.3 (766) this function ZEICHEN() not allow the number 10 and other till 32 (I allready read the manual and understand this problem).
    Anybody an idea to make a "Carriage Return" or "Line feed" in a formular, in a cell, in a table, in Pages?
    Thanks
    Detlev Kormann

    kdetlev wrote:
    Your workaround will not be possible in my table, because there is no empty cell in the table, but I think it is also a good help too.
    *In fact I forgot that you are using a table in Pages.*
    Remaining on my first idea, In Numbers we may achieve the same goal using an auxiliary table with a single cell containing the needed line break.
    If this table is named "LineBreak",
    the formula will be:
    ="Hello"&LineBreak :: $A$1&"World"
    *In Pages, here is my workaround:*
    Enter the cell
    type a§b
    don't type the character § but ctrl + return.
    The cell will contain
    a
    b
    with the arrow, move before the a
    type =B2&"
    delete the original a
    move to the right
    delete the original b
    type "&C7
    Yvan KOENIG (VALLAURIS, France) mercredi 7 octobre 2009 17:20:04

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

  • Carriage return in TextArea Flash component in Director 11

    Hello.
    I have a very big problem now
    Neither embedded Flash movies with textareas or standard flashcomponent TextArea from Director tool pallete do not react on keyboard button "Enter" pressings. There is no carriage return after ENTER button is pressed. The same with End and Home buttons!!
    Please help with any advise.
    Is that a common bug?
    See attached test.dir file. Try to type something in both textareas and then press ENTER button on keyboard. You should realize then what I'm crying about(((
    Alexey

    I too struggled with this issue. If you're looking for a solution still I have written one. Used the attached script in your Flash document, I spent a few days going back and forth between Director and Flash to figure this one out. Basically what I do is attach a key listener to the movieclip containing the textfield object that on keyDown gets the currently focused textField (this way it will work with multiple textField objects). After that it determines if the enter key is hit and if it is inserts a "/n" break at the selection starting point. The only issue is if you select a whole word in the textField and hit enter a break will be placed at the beginning of the highlighted word and that word will not be deleted. Hopefully this helps.
    -b
    // BY / contempt.productions inc.  10.30.09
    // Director 11.5 fix for bug where dynamic textfields don't register ENTER or RETURN key in Flash sprites
    // Solution involves inserting a \n carriage return wherever cursor insertion point starts.
    // In Flash this adds 2 carriage returns for every hit of the enter/return key
    // In Director 11.5 it adds 1 carriage return
    // Change "body_txt" to represent the dynamic textField object this script is referencing
    myListener = new Object();
    myListener.onKeyDown = function() {
    _global.textFocus = Selection.getFocus();
    // get a string of the path to the currently focused textField object
    _global.selStart = Selection.getBeginIndex();
    // get the insertion point, this is the start of any selection
    var multiText = body_txt.text;
    // get the text from the current textField object
    var theKey = Key.getCode();
    // get the current keyCode (13 is the keyCode for "enter/return" key)
    if (eval(textFocus) == eval(body_txt)) {
    // determine if focused textField and current textField are the same
    if (theKey == 13) {
    // enter key is pressed
    var firstPart = multiText.slice(0, selStart);
    // get the current textField's text from the beginning to the insertion point
    var secondPart = multiText.slice(selStart, multiText.length);
    // get the textField's text from the insertion point to the string's end
    body_txt.text = firstPart+"\n"+secondPart;
    // concatenate the first and second part of the textField's text with a carriage return
    Selection.setSelection(selStart+1,selStart+1);
    // place the text insertion point properly
    myListener.onKeyUp = function() {
    var theKey = Key.getCode();
    Key.addListener(myListener);

  • Serious Bug - Carriage Returns in Caption field

    LR for Windows does not handle Carriage Returns/Line Feeds correctly in the metadata Caption field.
    Windows Vista SP1, 32-bit
    Adobe Lightroom 2.4
    Library Module, Grid View
    Initial settings:
    LR Menu bar > Edit > Catalog Settings... > Metadata tab > Editing
    uncheck Offer suggestions from recently entered values
    uncheck Automatically write changes into XMP
    LR Menu bar > View > View options... > Grid View tab > Cell Icons
    check Unsaved Metadata
    Metadata panel: choose the Default Metadata Set.
    Import a JPG file into LR which contains no IPTC metadata.
    LR Menu bar > File > Import Photos from disk... > Choose the JPG file
    In the Import Photos dialog box, Information to Apply:
    Develop Settings: None
    Metadata: None
    Keywords: None
    Click Import.
    Click thumbnail of the JPG file which was Imported.
    In the Metadata panel click Caption field.
    Type "Word1" in the Caption field and press Return/Enter key.
    The Caption field loses focus.
    The Caption field should not lose focus when the Return/Enter key is pressed.
    Click the Caption field and press the Delete key to remove "Word1" from the field.
    In the Caption field type "Word1" and press Ctrl+Return/Enter key.
    As expected, the cursor moves to the line below "Word1" and the Caption field remains in focus.
    Type "Word2" and press Ctrl+Return/Enter key.
    As expected, the cursor moves to the line below "Word2" and the Caption field remains in focus.
    Click the JPG thumbnail and notice a down-arrow icon appears on the thumbnail indicating that the metadata for this JPG has been changed in the LR catalog and that it does not match the IPTC metadata that is embedded in the JPG file on the hard disk. Also notice in the Metadata panel, Metadata Status is "Has been changed".
    Click the down-arrow on the JPG thumbnail.
    See the dialog box that pops up saying "The metadata for this photo has been changed in Lightroom. Save the changes to disk?"
    Click Save.
    Notice on the JPG thumbnail, the down-arrow icon remains visible and does not disappear as it should if the JPG's metadata in the LR catalog and the metadata embedded in the JPG file on the hard disk were the same.
    Also notice in the Metadata panel, Metadata Status is "Has been changed".
    Click LR Menu bar > Edit > Catalog Settings... > Metadata tab > Editing
    check Automatically write changes into XMP
    Click OK.
    Notice on the JPG thumbnail, the down-arrow icon blinks rapidly. Also notice in the Metadata panel that "Metadata Status: Has been changed" blinks rapidly.
    Click LR Menu bar > Edit > Catalog Settings... > Metadata tab > Editing
    uncheck Automatically write changes into XMP
    Notice the blinking stops.
    Using a program that properly handles Carriage Returns/Line Feeds in IPTC metadata, such as Photo Mechanic 4.5, edit the metadata of another JPG file by typing "Word1", pressing the Return/Enter key, and typing "Word2" in the Caption field.
    Import that JPG into LR.
    LR Menu bar > File > Import Photos from disk... > Choose the JPG file
    In the Import Photos dialog box, Information to Apply:
    Develop Settings: None
    Metadata: None
    Keywords: None
    Click Import.
    Click the JPG thumbnail in LR Library Module.
    Notice in the Metadata panel, "Word1Word2" appears in the Caption field, in both the Default Metadata Set and the Large Caption Metadata Set. The CR/LF has been stripped away.
    CR/LFs typed into or pasted into the Large Caption set, also result in the persistence of the down-arrow icon even after metadata is saved to disk. And, if the Automatically write changes into XMP option is checked, the down-arrow icon blinks rapidly. And, if you view the Default set, notice Metadata Status: "Has been changed" blinks rapidly.
    When metadata is saved to disk, the down-arrow icon should disappear from the thumbnail, and in the Metadata panel, Metadata Status should read "Up to date". I would guess the blinking behavior indicates LR is stuck in some kind of loop - it is trying to save the metadata to disk and verify that it has been saved, but it keeps going round in a vicious circle. I also notice there is increased hard drive activity during the blinking behavior.

    Here is a related problem (using Lightroom 3.3, Windows).  When I import photos that have the IPTC caption field created in another program (ThumbsPlus, or IrfanView), carriage returns in the original do not show up in Lightroom.  Does anyone know why, or what to do about it?  I'd like to import lots of photos with existing captions, and some have carriage returns I would like to retain.
    For me, adding a carriage return to the Caption metadata within Lightroom works fine.  In the Library view, using the right panel, I can enter a carriage return using Ctrl+Enter in the Metadata > Default view or in the Metadata > IPTC view.  I can enter a carriage return directly with the Enter key (no Ctrl required) in the Metadata > Large Caption view.  After these entries are saved to the file, they show up correctly in other programs (IrfanView > Image > Properties > IPTC Info)

  • Carriage returns no longer available in Numbers

    I have just updated to the latest version of Numbers on my iPad following the update to iOS 5.  It appears that the new version has annoyingly lost the ability to insert a carriage return within a cell. The onscreen keyboard now diplays a "Next" key where the "Return" used to be.  I have tried every key combination on the onscreen and Mac bluetooth keyboard but cannot find how to insert a carriage return.  This is driving me nuts - can anyone help with this??
    Thanks

    In the previous version of Numbers i.e. before the iOS 5 update I could execute a carriage return by calling the on screen keyboard up.  However, the on screeen keyboard now has a "Next" key in place of a "Return" key which moves the cursor down to the cell below.  I have escalated this to Apple as I am sure this can't be intentional behaviour.

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

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

  • Inserting carriage returns in metadata when using fcsvr_client createasset

    Anyone know how to insert a carriage returns into a field when using fcsvr_client createasset? For example:
    ./fcsvr_client createasset paassetspot /dev/6/test.mov PAMD_CUSTNOTES="With \n line \n breaks"

    You can enter newlines as you type inline without variables; you just have to escape them to the shell.
    In bash, do:
    ./fcsvr_client createasset paassetspot /dev/6/test.mov PAMD_CUSTNOTES=$'With \nline \nbreaks'
    (The difference from your initial attempt is the dollar sign and the single quotes.)
    In tcsh, you could do:
    ./fcsvr_client createasset paassetspot /dev/6/test.mov PAMD_CUSTNOTES="With \
    ? line \
    ? breaks"

  • No carriage return

    Hello all,
    I used OPEN DATASET <filename> FOR OUTPUT IN TEXT MODE to create a text file, but when I look at the ouput, there was no carriage return after each line.
    Any idea why.
    Thanks,
    Ricky

    Here's the code, look at the FORM 'output_error_log'
    Thanks!
    REPORT  zclureconciledebt
    LINE-SIZE 132
    LINE-COUNT 000(03)
    MESSAGE-ID zz
    NO STANDARD PAGE HEADING.
    *INTERNAL TABLE - LOAD RECORDS FROM TEXT FILE
    DATA: BEGIN OF it_recs OCCURS 0,
           kunnr LIKE zclcrrptd-kunnr,
           belnr LIKE zclcrrptd-belnr,
           zzrty LIKE zclcrrptd-zzrty,
           zzsrc LIKE zclcrrptd-zzsrc,
           skip  TYPE flag,
           mess(64) TYPE c,
    END OF it_recs.
    DATA: wgf_idx TYPE syindex.
    DATA: BEGIN OF gt_err OCCURS 0,
           kunnr LIKE zclcrrptd-kunnr,
           belnr LIKE zclcrrptd-belnr,
           zzrty LIKE zclcrrptd-zzrty,
           zzsrc LIKE zclcrrptd-zzsrc,
           skip  TYPE flag,
           mess(64) TYPE c,
    END OF gt_err.
    DATA: wgf_rec_err TYPE flag.        "Record Error
    DATA: wgf_glb_err TYPE flag.        "Global Error
    TABLES:
      zclcrrptd, "DETAIL TABLE
      zclcustst. "CUSTOMER STATUS TABLE
                         SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK fileinfo WITH FRAME TITLE text-099.
    PARAMETERS: rb_reg RADIOBUTTON GROUP regr DEFAULT 'X'.
    PARAMETERS: rb_err RADIOBUTTON GROUP regr.
    PARAMETERS: p_file LIKE rlgrap-filename DEFAULT
      '/sapfs/sapftp/camftp/tsap/debt_extract_rec.txt'
      LOWER CASE OBLIGATORY.
    PARAMETERS: p_rename AS CHECKBOX DEFAULT 'X'.
    SELECTION-SCREEN END OF BLOCK fileinfo.
                         START OF SELECTION
    START-OF-SELECTION.
      PERFORM get_file.
      PERFORM get_document.
      LOOP AT it_recs WHERE NOT belnr IS initial.
        MOVE sy-tabix TO wgf_idx.                              "+DEVK970676
        PERFORM delete_zclcrrptd.
        PERFORM delete_status.
        PERFORM commit_work.
      ENDLOOP.
      IF NOT p_rename IS INITIAL.
        PERFORM file_rename.
      ENDIF.
      PERFORM error_log.
      PERFORM output_error_log.
    END-OF-SELECTION.
                         FORMS
    *&      Form  get_file
          text
    -->  p1        text
    <--  p2        text
    FORM get_file.
      DATA: wlf_string(500) TYPE c,
            wlf_start TYPE i,
            wlf_stop TYPE i,
            wlf_temp(10) TYPE c.
    Open Mainframe File
      OPEN DATASET p_file IN TEXT MODE.
      IF sy-subrc <> 0.
        MESSAGE e003(zz) WITH p_file.
        STOP.
      ENDIF.
      IF NOT rb_reg IS INITIAL.
      Regular Run - Get records AS PER METRO2 FILE DEFS.
        DO.
          READ DATASET p_file INTO wlf_string.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          wlf_temp =  wlf_string+421(10).
          OVERLAY wlf_temp WITH '0000000000'.
          CLEAR: it_recs.
          it_recs-kunnr = wlf_temp.
          it_recs-zzsrc = wlf_string+432(21).
          it_recs-zzrty = wlf_string+455(4).
          APPEND it_recs.
          CLEAR it_recs.
        ENDDO.
      ELSE.
      Open Error File (from previously failed MF run)  +DEVK968120|
        DO.
          READ DATASET p_file INTO wlf_string.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          CLEAR: it_recs.
          it_recs-kunnr = wlf_string(10).
          it_recs-belnr = wlf_string+10(10).
          it_recs-zzrty = wlf_string+20(4).
          it_recs-zzsrc = wlf_string+24(21).
          APPEND it_recs.
          CLEAR it_recs.
        ENDDO.
      ENDIF.
    ENDFORM.                    " get_file
    *&      Form  delete_zclcrrptd
          text
    -->  p1        text
    <--  p2        text
    FORM delete_zclcrrptd.
      DATA: wlf_rc TYPE sysubrc.
    Clear record error variable (used later for commit work)
      CLEAR wgf_rec_err.
      CLEAR wlf_rc.
    DELETE RECORDS FROM DETAIL TABLE
      DELETE FROM zclcrrptd WHERE
      kunnr = it_recs-kunnr AND
      zzsrc = it_recs-zzsrc AND
      zzrty = it_recs-zzrty.
      IF sy-subrc <> 0.
      Capture return code
        MOVE sy-subrc TO wlf_rc.
      Set record level error variable
        wgf_rec_err = 'X'.
      Set global level error variable
        wgf_glb_err = 'X'.
      Job Log
        IF sy-batch = 'X'.
          MESSAGE i045(zz) WITH
          wlf_rc
         ' - Record could not be deleted from zclcrrptd-Customer/Document'
          it_recs-kunnr it_recs-belnr.
        ENDIF.
      Spool
        WRITE :/ 'ERROR - Record could not be deleted from zclcrrptd',
              it_recs-kunnr, it_recs-belnr, ' RC:', wlf_rc.
      Note record should be skipped.
        WRITE wlf_rc TO it_recs-mess.
        CONCATENATE it_recs-mess
                    ' - Record could not be deleted from zclcrrptd'
                    INTO it_recs-mess.
        it_recs-skip = 'X'.
        MODIFY it_recs INDEX wgf_idx.
    DEVK970676 - Remove
    ELSE.
       WRITE :/ 'RECORD DELETED FROM ZCLCRRPTD', it_recs-kunnr,
                 it_recs-belnr.
      ENDIF.
      CLEAR wlf_rc.
    ENDFORM.                    " delete_zclcrrptd
    *&      Form  DELETE_STATUS
          text
    -->  p1        text
    <--  p2        text
    FORM delete_status.
      DATA: wgf_zclcustst_out_tab LIKE zclcustst OCCURS 1 WITH HEADER LINE.
      DATA: wlf_rc TYPE sysubrc.
    Skip Record?  (if error in previous processes)
      IF it_recs-skip IS INITIAL.
        CLEAR wgf_zclcustst_out_tab.
        CLEAR wlf_rc.
        wgf_zclcustst_out_tab-kunnr = it_recs-kunnr.
        wgf_zclcustst_out_tab-belnr = it_recs-belnr.
        wgf_zclcustst_out_tab-collstat = 'RE'.
        wgf_zclcustst_out_tab-ersda    = sy-datum.
        wgf_zclcustst_out_tab-expired  = 'X'.
      Mark status as deleted
        wgf_zclcustst_out_tab-xreason  = 'D'.
        wgf_zclcustst_out_tab-lstmodby = sy-uname.
        wgf_zclcustst_out_tab-lstmoddt = sy-datum.
        wgf_zclcustst_out_tab-lstmodtm = sy-uzeit.
        APPEND wgf_zclcustst_out_tab.
        CALL FUNCTION 'Z_COL_STATUS_SET'
             TABLES
                  cust_stat_tab      = wgf_zclcustst_out_tab
             EXCEPTIONS
                  foreign_lock       = 1
                  insert_error       = 2
                  invalid_status     = 3
                  document_missing   = 4
                  document_not_blank = 5
                  invalid_customer   = 6
                  OTHERS             = 7.
        IF sy-subrc <> 0.
        Capture return code
          MOVE sy-subrc TO wlf_rc.
        Set record level error variable
          wgf_rec_err = 'X'.
        Set global level error variable
          wgf_glb_err = 'X'.
        Job Log
          IF sy-batch = 'X'.
            MESSAGE i045(zz) WITH wlf_rc
            ' - RE Status could not be deleted - Customer/Document '
            it_recs-kunnr it_recs-belnr.
          ENDIF.
          WRITE: / 'ERROR - CANNOT DELETE/REMOVE RE STATUS', it_recs-kunnr,
                   it_recs-belnr, ' RC:', wlf_rc.
        Note record should be skipped.
          WRITE wlf_rc TO it_recs-mess.
          CONCATENATE it_recs-mess
                      ' - Cannot Delete/Remove RE Status'
                      INTO it_recs-mess.
          it_recs-skip = 'X'.
          MODIFY it_recs INDEX wgf_idx.
       DEVK970676 - Remove
       ELSE.
         WRITE: / 'STATUS DELETED', it_recs-kunnr, it_recs-belnr.
        ENDIF.
      ENDIF.
      CLEAR wlf_rc.
    ENDFORM.                    " DELETE_STATUS
    *&      Form  DISPLAY_OUTPUT
          text
    -->  p1        text
    <--  p2        text
    *FORM display_output.
    SKIP 2.
    WRITE:/'****RECORDS REMOVED FROM CREDIT REPORTING***'.
    LOOP AT it_recs.
       WRITE:/ sy-tabix, '-', it_recs-kunnr, it_recs-zzsrc,
             it_recs-zzrty.
    ENDLOOP.
    *ENDFORM.                    " DISPLAY_OUTPUT
    *&      Form  getdocument
          text
    -->  p1        text
    <--  p2        text
    FORM get_document.
    Get document number from detail table zclcrrptd.
      DATA: wlf_belnr LIKE zclcrrptd-belnr.
      LOOP AT it_recs.
      Keep track of this in case of errors (see Modify below)
        MOVE sy-tabix TO wgf_idx.
        SELECT SINGLE belnr FROM zclcrrptd INTO wlf_belnr WHERE
        zzsrc = it_recs-zzsrc AND
        kunnr = it_recs-kunnr AND
        zzrty = it_recs-zzrty.
        IF sy-subrc = 0.                            "+DEVK968120
          CLEAR it_recs-belnr.
          it_recs-belnr = wlf_belnr.
          MODIFY it_recs.
        ELSE.
        Set global level error variable
          wgf_glb_err = 'X'.                        "+DEVK968146
          IF sy-batch = 'X'.
            MESSAGE i045(zz) WITH
            'Could not find doc. in zclcrrptd - Customer/ZZSRC/ZZRTY'
                                   it_recs-kunnr
                                   it_recs-zzsrc
                                   it_recs-zzrty.
          ENDIF.
        Spool - Note record should be skipped.
          it_recs-mess = 'Document not found in zclcrrptd'.
          it_recs-skip = 'X'.
          MODIFY it_recs INDEX wgf_idx.
        ENDIF.
        CLEAR it_recs.
      ENDLOOP.
    Stop if no records
      IF it_recs[] IS INITIAL.
        MESSAGE s045(zz) WITH 'No Records to process - stopping'.
        WRITE: 'No Records to process - stopping'.
        STOP.
      ENDIF.
    ENDFORM.                    " get_document
    *&      Form  file_rename
          text
    -->  p1        text
    <--  p2        text
    FORM file_rename.
    *NEED TO KEEP FILES FOR AUDIT PURPOSES.
    *RENAME FILE WITH CURRENT DATE AND TIME.
      DATA: status2 LIKE btcxp3-exitstat.
      DATA: wlf_sy_subrc(2) TYPE n.
      DATA: BEGIN OF exec_protocol OCCURS 0.
              INCLUDE STRUCTURE btcxpm.
      DATA: END OF exec_protocol.
      DATA: wlf_filename LIKE sxpgcolist-parameters.
      MOVE p_file TO wlf_filename.
      CALL FUNCTION 'Z_CAM3_RENAME2_UNIX_FILE'
           EXPORTING
                parameters                 = wlf_filename
           IMPORTING
                status                     = status2
           TABLES
                exec_protocol              = exec_protocol
           EXCEPTIONS
                no_permission              = 1
                command_not_found          = 2
                parameters_too_long        = 3
                security_risk              = 4
                wrong_check_call_interface = 5
                program_start_error        = 6
                program_termination_error  = 7
                x_error                    = 8
                parameter_expected         = 9
                too_many_parameters        = 10
                illegal_command            = 11
                OTHERS                     = 12.
      IF sy-subrc NE 0.
        wlf_sy_subrc = sy-subrc.
        FORMAT COLOR 6.
        WRITE: /'File:', 7 p_file.
        WRITE: /7 'Could not be Copied.  Return Code = ', wlf_sy_subrc.
        FORMAT RESET.
      ENDIF.
    ENDFORM.                    " file_rename
    *&      Form  commit_work
          text
    -->  p1        text
    <--  p2        text
    FORM commit_work.
    Commit work when successful delete from detail table and status delete
      IF wgf_rec_err IS INITIAL.
        IF sy-batch = 'X'.
          CALL FUNCTION 'DB_COMMIT'.
          WRITE: / 'Record Deleted', it_recs-kunnr, it_recs-belnr.
        ELSE.
          COMMIT WORK.
          WRITE: / 'Record Deleted', it_recs-kunnr, it_recs-belnr.
        ENDIF.
      ELSE.
        ROLLBACK WORK.
      ENDIF.
    ENDFORM.                    " commit_work
    *&      Form  error_log
          text
    -->  p1        text
    <--  p2        text
    FORM error_log.
      IF NOT wgf_glb_err IS INITIAL OR NOT wgf_rec_err IS INITIAL.
      More error records to error table
        LOOP AT it_recs WHERE NOT skip IS initial.
          APPEND it_recs TO gt_err.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " error_log
    *&      Form  output_error_log
          text
    -->  p1        text
    <--  p2        text
    FORM output_error_log.
      DATA: wlf_filename LIKE sxpgcolist-parameters.
      DATA: status2 LIKE btcxp3-exitstat.
      DATA: BEGIN OF exec_protocol OCCURS 0.
              INCLUDE STRUCTURE btcxpm.
      DATA: END OF exec_protocol.
      DATA: ls_err LIKE LINE OF gt_err.
    Check there is at least 1 error
      IF NOT gt_err[] IS INITIAL.
      Build error file file name
        CONCATENATE p_file
                    '.Err'
                    INTO wlf_filename.
      Open output file
        OPEN DATASET wlf_filename FOR OUTPUT IN TEXT MODE.
        IF sy-subrc <> 0.
          MESSAGE e004(zz) WITH p_file.
        ENDIF.
      Transfer data to output file
        LOOP AT gt_err INTO ls_err.
          TRANSFER ls_err TO wlf_filename.
        ENDLOOP.
        CLOSE DATASET wlf_filename.
      Rename Error File
        CALL FUNCTION 'Z_CAM3_RENAME2_UNIX_FILE'
             EXPORTING
                  parameters                 = wlf_filename
             IMPORTING
                  status                     = status2
             TABLES
                  exec_protocol              = exec_protocol
             EXCEPTIONS
                  no_permission              = 1
                  command_not_found          = 2
                  parameters_too_long        = 3
                  security_risk              = 4
                  wrong_check_call_interface = 5
                  program_start_error        = 6
                  program_termination_error  = 7
                  x_error                    = 8
                  parameter_expected         = 9
                  too_many_parameters        = 10
                  illegal_command            = 11
                  OTHERS                     = 12.
      Update Spool
        WRITE 'Error(s) Occurred - Please check then process error file'.
        WRITE 'Rerun program with flag "Error File (Re-Running Job)"'.
        WRITE 'and set input file to latest .Err file'.
      Update Log
        IF sy-batch = 'X'.
          MESSAGE i045(zz) WITH 'Error(s) Occurred - '
                                'Please check then process error file.'.
          MESSAGE i045(zz) WITH 'Rerun program with flag '
                                '"Error File (Re-Running Job)"'.
          MESSAGE e045(zz) WITH 'and set input path to latest .Err file'.
        ENDIF.
      ELSE.
        MESSAGE s045(zz) WITH 'Processing Successfully Completed'.
      ENDIF.
    ENDFORM.                    " output_error_log

  • Carriage return (cmd-alt-return) in a event

    Since I switched to Mac OS Lion, carriage returns are no longer functional (cmd-alt-return). Instead of lists, my text is condensed and difficult to read. Is this a bug? Is there a setting that can correct this?

    kdetlev wrote:
    Your workaround will not be possible in my table, because there is no empty cell in the table, but I think it is also a good help too.
    *In fact I forgot that you are using a table in Pages.*
    Remaining on my first idea, In Numbers we may achieve the same goal using an auxiliary table with a single cell containing the needed line break.
    If this table is named "LineBreak",
    the formula will be:
    ="Hello"&LineBreak :: $A$1&"World"
    *In Pages, here is my workaround:*
    Enter the cell
    type a§b
    don't type the character § but ctrl + return.
    The cell will contain
    a
    b
    with the arrow, move before the a
    type =B2&"
    delete the original a
    move to the right
    delete the original b
    type "&C7
    Yvan KOENIG (VALLAURIS, France) mercredi 7 octobre 2009 17:20:04

  • How to undo carriage returns?

    Hi, I send char(10) and char(13) to my output stream to move to the next line. If the user presses the backspace, char(8), I have to undo what he has typed. Undoing characters is not a problem as long as the user has not moved to the next line (no carriage return was sent to output stream).
    I would like my cursor to move back to previous line if user does backspace and current line has no more characters. Anyone knows how?
    Btw, sending char(8) to the outputstream did not do the trick, it only did so for charaters.
    Thanks.

    Well, it's still not working today (after 20 years). The application is on a DOS environment. Would like to undo previous line when user continuously presses backspace.

  • Xorg crash after carriage return [SOLVED]

    When I login everything works until I give a carriage return somewhere, like emacs, shell,...
    Then Xorg crashes and brings me back to gdm.
    Any solutions for this problem? I'm using an nvidia graphics card.
    Last edited by return new int[5] (2010-10-03 19:38:39)

    Gnome/Xorg crashes randomly when the enter key is pressed
    If you find Gnome, GDM and Xorg crashing randomly when you press the enter key, you are probably experienceing this bug: [1]
    As a work arround, edit /etc/rc.conf and move Gdm to the end of the DAEMONS list
    e.g. Run this command in terminal:
    sudo vi /etc/rc.conf
    Edit the last line of the file so it looks something like:
    DAEMONS=([...] gdm)
    from this page :  http://wiki.archlinux.org/index.php/GNOME

  • How to make a Carriage Return in a Word-Table by OLE Automation

    I generated a Table in a Word-Document by using the OLE2 Interface.
    After that I wrote a Text in the first cell of the table.
    Now I want to make a Carriage Return to write another Textline in the same Cell.
    But first i must move the cursor to the end of the Text.
    I haven't already figured that out.
    Can someone Help me?
    I tried this but then the Cursor moves to the Begin of the second Cell in the same row.
    *Writing the Text in the Cell
      GET PROPERTY OF o_cell 'Range' = o_range.
      SET PROPERTY OF o_range 'Text' = wa_anschr-ename.
    *Move Cursor
      GET PROPERTY OF o_cell  'Range' = o_range.
      GET PROPERTY OF o_range 'End' = ld_pos.
      SET PROPERTY OF o_range 'Start' = ld_pos.
      CALL METHOD OF o_range ' Select'.

    I don't know about your suggestion.
    I solved the Problem with that Method:
    CALL METHOD OF o_selection 'EndKey'
        EXPORTING
          #1 = '5'.
      CALL METHOD OF o_selection 'TypeParagraph'.
    The Parameter "5" ist the VB Constant wdline...
    Now it works and I'm happy

Maybe you are looking for

  • How to run  multi reports at a time using button

    dear all i have a button on form, that call a report abc.rep. when i press the button report is displayed. now i want to show another view of that report when i press button second time. but it doesn't appear. when i close the first report that it ge

  • Problem installing Elements 6.0

    In trying to install PSE 6 I get the following error message: "Startup Error - Required resources missing". If anyone else has seen this and/or has a possible solution I would be grateful for your help.

  • I cannot get Safari to quit no matter what I do ?

    I am trying to load Steam and I need to update Adobe Flash Player. I have quit requested applications but despite repeated, varied tries, Safari will not quit.  I am using MAC 10.8.4   Help ?

  • Camera Error Storm2 9550

    Sigh...  I have become victim to the camera error "Could not start camera.  Close other applications and try opening the camera again."  I've tried battery pulls and all sorts of other tricks to no avail.  I can't wipe the phone and start over becaus

  • No data from iPhone on pc

    I have this problem for a while already. I can put thing from my laptop on my iPhone but not vece versa. I have al lot of stuff from py iPhone that has to get on my laptop. any clou?