Blank lines at the end of SMS - iOS 4

I've recently upgraded to the iPhone 4 from a 3G and messaging is so much faster, but for some reason occasionally when I send or receive an SMS there is a blank space at the bottom of the message, as if there's a carriage return there. This happens for both messages I send and receive, about every fifth message or so, and seems to be random.
Anyone else noticed this? I've not had this issue before iOS 4 and although it isn't causing any problems with actually sending and receiving messages, it's quite annoying!

String#trim() removes all whitespace from both ends of the String.
The requirement was to remove line breaks from the end of the String only.
String#replaceAll with a suitable regex would do the trick. Untested regex for this:text.replaceAll("[\\n\\r]+$", "")db

Similar Messages

  • SMS Messaging: Blank line at the end of the message

    I never had this problem with the 3G, but on my iPhone 4, I often see a blank line at the end of my text message after I send it.
    Also, a similar issue I am having is that while I am drafting text messages, the words fits nicely in the text input box, but once I hit send, some words are shifted to the next line.
    *Typed in input box:*
    Sorry. We'll be there asap.
    *Show in the green bubble:*
    Sorry. We'll be there
    asap.
    Anyone know how I can solve this problem? Thank you!

    this isnt the way to respond to someones problem... thats not what this forum is for ..
    now to the op have you tried resetting your phone by holding both the home button and the sleep/wake switch for 15 seconds...
    if that doesnt work I would try restoring your phone from backup to see if you can clear this issue up

  • How to remove the blank lines at the end of the JTextArea .

    Hi,
    I need to remove the blank lines in the JTextArea at the end. Suppose i am giving 'A' in the first line and press the enter key two times, after i am giving the 'B' in the third line and press enter key for two times. I need to remove, the last two lines of JTextAreae, . How i can remove these lines?

    String#trim() removes all whitespace from both ends of the String.
    The requirement was to remove line breaks from the end of the String only.
    String#replaceAll with a suitable regex would do the trick. Untested regex for this:text.replaceAll("[\\n\\r]+$", "")db

  • How to remove blank lines in the end of list .

    hi,
    in a complex report ,when there are only 20 pages,and linecount is 65(2) ,in the last page only 27 lines are filled and data is completed.then blank lines are printing from 27th line to 63 line.then end of page is triggering.
    so plz help me how to remove the blank lines here and immediately print the endof page.

    Hi,
    will this work for you.
    SET BLANK LINES OFF.
    These statements allow you to specify whether you want to output blank lines or not. Use SET BLANK LINES ON to output blank lines or SET BLANK LINES OFF to suppress them.
    Regards
    Viswanath Babu

  • Unable to remove the "blank" line at the end of the file

    Hi Experts,
    My requirement is to send data in 'Binary' form as an attachement to a mail address. I have followed as below.
    Converted data into Binary form using the FM 'SCMS_TEXT_TO_BINARY'
    Call FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send mail.
    Until this point, all works fine and I receive a text file as well. Howvever, a blank line gets appended at the end (after last line) of the file. Please let me know, how I would get rid-off this empty line. Please refer attachment.
    Thanks in advance !

    Thanks Manish.
    I have resoved the issue, following steps have been incorporated.
    1. Find the output length of the file from the exporting parameter(output_length) of the Function module 'SCMS_TEXT_TO_BINARY'
    2. Pass the output length to DOC_SIZE component to the second line of the itab packing_list of function module 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    3. Pass the output length to DOC_SIZE component to document_data of function module 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
    So there it is, the blank line is gone....
    Regards,
    Umar Ali

  • Implementing multiple page size requirement - extra blank page at the end

    My XMLP report requirement is as follows.
    - The report is printing a bunch of lines.
    - Based on data and layout requirement, lines are grouped into page where they belong (due to complex logic for determining which page a line should go to...this is done in PL/SQL package that is called in the beginning of the RDF trigger)
    - The first page needs to be printed on Legal size paper
    - Subsequent pages (IF NEEDED) need to be printed on Letter size paper
    So some report will have a 1-page output (legal size), and some will have multiple pages (1st page should be legal size, subsequent on letter size).
    Here is a sample XML data:
    <REPORT>
    <LIST_G_PAGE_NUMBER>
    <G_PAGE_NUMBER>
    <PAGE_NUMBER>1</PAGE_NUMBER>
    <LIST_G_LINE>
         <G_LINE>...</G_LINE>
         <G_LINE>...</G_LINE>
    </LIST_G_LINE>
    </G_PAGE_NUMBER>
    <G_PAGE_NUMBER>
    <PAGE_NUMBER>2</PAGE_NUMBER>
    <LIST_G_LINE>
         <G_LINE>...</G_LINE>
         <G_LINE>...</G_LINE>
    </LIST_G_LINE>
    </G_PAGE_NUMBER>
    <G_PAGE_NUMBER>
    <PAGE_NUMBER>3</PAGE_NUMBER>
    <LIST_G_LINE>
         <G_LINE>...</G_LINE>
         <G_LINE>...</G_LINE>
    </LIST_G_LINE>
    </G_PAGE_NUMBER>
    </LIST_G_PAGE_NUMBER>
    </REPORT>
    For this, I created 2-pages RTF template and using the Word Page Setup feature:
    1. First page setup is legal size (go to Page Setup, Paper tab, choose Letter and choose Apply to "Whole Document").
    The first page has the following XMLP tag:
    <?for-each: G_PAGE_NUMBER?>
    <?if: PAGE_NUMBER=1?><?call:body?><?end if?>
    <?end for-each?>
    <?template:body?>
    for-each loop that prints lines in a tabular format
    <?end template?>
    2. Second page setup is letter size (go to Page Setup, Paper, choose Letter and choose Apply to "This point forward").
    <?for-each: G_PAGE_NUMBER?>
    <?if: PAGE_NUMBER>1?><?call:body?><-- Ctrl-Break to insert a page break here --> <?end if?>
    <?end for-each?>
    It almost worked, except there is a blank page printed at the end. How do I remove the blank page? I have tried to use <?split-by-page-break:?> instead of the Ctrl-Break, but it did not seem to work (there is no page break happening at all).
    I think the extra page is due to the multiple page nature of the RTF template. Is there a way to control the page size through XMLP tag (or XSL-FO). With that, I can try having a single page template and put the page size control within the XMLP / XSL-FO tag and hope that the extra blank page at the end will go away. Can someone please help?
    Thank you!

    Sorry for the typo in my previous post... I meant Ctrl-Enter (not Ctrl-Break).

  • IDoc to file - how to delete a blank record at the end of the file.

    Hi,
    My senario is IDoc to file.  I have successfully implemented this using FCC. But when i checked the flat file, it has a blank record at the end of the file( i think PI adds one blank line/record at the end of the file).  Please suggest me What i need to do, to delete the blank record .
    Thanks & regards
    Sreeni

    Kindly Check below.
    Check whether the problem is at mapping level of  adapter level.. to do this count no. of rows/IDOC before mapping and after mapping in IE and no. of rows in the output file.
    Thnx
    Subbu

  • How to add blank line below the table/row whenever there is no data

    Hello Everyone,
    I have a table in my report template like below:-
    Children / Dependents: Name / Comments: Grandchildren: Name / Comments:
    Son John Daughter Smith
    Daughter Laura Son Kevin
    Son Bill None NA
    When i run the report I need to achieve the following conditions:-
    Condition 1: Loop through all rows and whenever there is data in any row in the table...I need to Populate and print it.
    Condition 2: When Loop is ended, when you see there is no data in any row in the table... add a dash line at the end of the table.
    Condition 3: Total no of populated rows + blank dash line <= Max no of rows in DB. And when max no of populated rows in report = max no of rows in DB/UI ... don’t print dash line.
    I want to achieve these conditions. Can you please help me.
    Thanks..Rithesh

    Hello Everyone,
    I have a table in my report template like below:-
    Children / Dependents: Name / Comments: Grandchildren: Name / Comments:
    Son John Daughter Smith
    Daughter Laura Son Kevin
    Son Bill None NA
    When i run the report I need to achieve the following conditions:-
    Condition 1: Loop through all rows and whenever there is data in any row in the table...I need to Populate and print it.
    Condition 2: When Loop is ended, when you see there is no data in any row in the table... add a dash line at the end of the table.
    Condition 3: Total no of populated rows + blank dash line <= Max no of rows in DB. And when max no of populated rows in report = max no of rows in DB/UI ... don’t print dash line.
    I want to achieve these conditions. Can you please help me.
    Thanks..Rithesh

  • Empty line at the end of  SAP Java instance profile

    I saw this today in help.sap.com, which says that an Java instance profile must have an empty line at the end of the file, would anyone know what is it for ?
    The instance profile (/usr/sap/<SID>/SYS/profile/<SID>_<instance name>_<hostname>) u2013 this file contains settings that apply to the instance as a whole. For a Java-only installation, the file can be edited with any text editor (beware that the file must have an empty line at the end.);
    http://help.sap.com/saphelp_nw04s/helpdata/en/2e/611724f410254ca12a3f396ec5ae85/frameset.htm
    thank you
    Jonu Joy

    I have heard many "explanations" for this, but never really any solid answers.
    From experience, however, I can tell you that the SAP profiles (both ABAP and Java) will miss the last parameter if it is located on the bottom line of the file.  I have always put in two or three blank spaces at the bottom of the profiles in order to avoid this.

  • Problem with a blank page at the end.

    Hi,
    I have a report. That comes up with a blank page at the end of the report when the report generates the output in the report builder. Also in pdf file.
    It was created by somebody earlier... and i need to fix this bug.
    Any solutions..?
    Thanks in advance.
    KK
    Message was edited by:
    KK28

    Hi
    there are a number of hits on Metalink for this...
    Subject:      Extra Page Shown At The End Of A Web Report
         Doc ID:      Note:172426.1      Type:      PROBLEM
         Last Revision Date:      04-JAN-2005      Status:      ARCHIVED
    * fact: Oracle Reports Developer 6.0.5
    * fact: Solaris Operating System (SPARC)
    * fact: Microsoft Internet Explorer
    * fact: Adobe Acrobat
    * fact: OAS
    * symptom: Extra Page Displayed At The End Of A Report Viewed on the Web
    * symptom: Only happens on one report
    * symptom: Using Times New Roman
    * symptom: Client/Server configuration works successfully
    * change: Report originally created for client/server application was moved to a web application without making any coding changes in the report.
    * cause: Bug 1386820 : HTML GENERATED ON NT AND UNIX IS DIFFERENT. ADDITIONAL BLANK LINES ON UNIX
    fix:
    Use the Report Builder on Unix to make fine adjustments in the layout to
    improve the HTML output.
    -----x------------------
    Subject:      How to set the number of rows per page dynamically in a report
         Doc ID:      Note:122714.1      Type:      SCRIPT
         Last Revision Date:      07-NOV-2000      Status:      PUBLISHED
    PURPOSE
    This article shows how to set the number of rows per page dynamically according
    to the user parameter specified.
    INSTRUCTIONS
    Follow these steps:
    1. In the Object Navigator under Data Model-->User Parameters, create an user
    parameter P_1 -- this parameter specifies the number of rows you want to
    print per page
    datatype: number.
    2. In the Data Model Editor, create the query and the layout according to your
    requirements.
    Let's assume that we have the following:
    Q_1: Select empno, deptno ename from emp
    order by deptno, ename
    G_1 has the columns empno, deptno, ename
    3. In the Data Model Editor, create the following summary columns:
    CS_numrow will be numbering the rows within the detail group
    (created within G_1).
    Set the following parameters:
    Name: CS_numrow
    Function: count
    Source: <any column that does not accept nulls> for instance, empno
    Reset at: Report
    CS_total_rows will calculate the total of rows retrieved
    (created at the report level)
    Set the following parameters:
    Name: CS_total_rows
    Function: count
    Source: <any column that does not accept nulls> for instance, empno
    Reset at: Report
    4. In the Layout Model Editor, create a Group Frame M_1 within the repeating
    frame, below the fields empno, deptno, and ename. You may have to stretch
    the existing frames to be able to fit this in.
    F_enmpno F_deptno F_ename
    --------------------------------------------- <<<< create the group
    frame here
    5. Set the properties for the Group Frame M_1 as follows:
    Print condition: First
    Object: Enclosing Object
    Sizing:
    Vertical: variable
    Horizontal: fixed
    Check the box "Page Break before".
    6. Create a Format trigger for this frame M_1 as follows:
    function M_1FormatTrigger return boolean is
    /* prints until a row number is product of P_1 */
    /* if row number is 5 and P_1 = 5, MOD is 0 */
    /* then it prints the frame, doing a page break */
    begin
    if :CS_total_rows <> :CS_numrow then -- avoiding blank page at the end
    if mod(:CS_numrow,:P_1) = 0 then
    return (TRUE);
    else
    return(false);
    end if;
    else
    return (false);
    end if;
    end;
    NOTE: This assumes that the report is tabular. If you have a break group, this
    logic can be applied for the detail group.
    REFERENCES
    Information in this article was taken from Oracle Sample Code @ Repository
    Entry #956. In order to request the binary (rdf file or .sql script), please
    log a TAR via Metalink requesting Oracle Sample Code #956
    CAUTION
    The sample program in this article is provided for educational purposes only
    and is NOT supported by Oracle Support Services. It has been tested
    internally, however, and works as documented. We do not guarantee that it
    will work for you, so be sure to test it in your environment before relying
    on it.
    -------x-------------
    the list goes on...
    Hope this helps

  • How to add a new line at the end of eTEXT file

    Hi,
    I have modified the RTF template for the R12.1.3 Positive Pay File report (IBYPOS_PAY_en.rtf). Everything is good, except that the bank requires a "T" (Capital T) character in a new line at the end of the text file. Has any of you came across this before? How do I modify the template to achieve this?
    Thank you,
    Sinan Topuz

    I believe this is related to BI Publisher. Any comments would be greatly appreciated.
    Thanks,
    Sinan

  • How to draw horizontal line at the end of table for multiple line items

    Dear Experts,
                       Pls can anyone help me how to draw horizontal line at the end of table for multiple line items . kindly help me regarding this
    Thanks
    Ramesh Manoharan

    Hi
       I tried as per your logic but it is not solving my problem .  when i am gone to table painter it is showing line type 1 and line type 2
      is below format.. if u see here line type 1 bottom line and line type 2 top line both are same..  so how to avoid this ?
                              line type 1
                             line type 2

  • GUI_DOWNLOAD blank lines in the middle

    Hi All,
    I am using 'GUI_DOWNLOAD' FM to create excel file of my internal table data; Internal table is having 220 fields and expects to create 220 columns in excel file;
    In the middle of the excel file I get several blank lines on and off with only very few column values are filled;
    I checked the ITAB in debug before calling the FM it has no issues and has the correct data;
    My code is as below;
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = l_filename
          filetype                = 'ASC'
          write_field_separator   = 'X'
        TABLES
          data_tab                = i_compare
          fieldnames              = i_excel_head
        EXCEPTIONS
          file_write_error        = 1
    Appreciate your expert ideas please;
    Thank you
    Iver

    Hi,
    GUI_DOWNLOAD blank lines in the middle
    In your GUI_DOWNLOAD code, There is no mistake.
    I think, In your program, have you written any SET BLANK LINES ON.
    It is one case.
    Follow this link,
    http://wiki.sdn.sap.com/wiki/display/ABAP/DownloadinginternaltablestoExcel
    It may helps to you.
    Regards,
    Sekhar

  • How can I remove the preceding blank lines in the downloaded text file?

    I have created a jsp that writes to a file and then prompts a dialog box to have an option to view or save the file. However when i view the file, there are blank lines before the actual content of the file. How can i remove these lines?
    Below is part of my code:
         response.setContentType("application/x-download");
         response.setHeader("Content-Disposition","attachment; filename=\""+ fileName + "\"");

    Hi,
    Those blank lines are normally because of the scriptlet code at the start of your jsp page.
    Remove any new lines between page directives or any include directives that you have at the top of your page.
    Look at the generated servlet code to see what exactly is causing the newline to be inserted (look for out.println("\n");)

  • My new version of Firefox (downloaded automatically) on my Mac displays long paragraphs in emails as a single line, so the end of the paragraph is off the screen. How can I make it automatically wrap to fit the screen?

    Long paragraphs in incoming emails display as a single line, with the end of the paragraph running off the screen. I want to make it wrap automatically to fit the screen.

    For the browser window, just drag it to the top left of the screen (click and hold on the top bar with the traffic lights to drag), then in the bottom right of the window you'll see a rectangle with diagonal hatching. Click and hold on that and drag the window to the size you want.
    Clicking on the green dot at top left will expand the window to fit the screen, clicking it again will shrink it back to where it was (this doesn't work in Finder windows quite the same).
    The menu bar size is set in the bowels of the OS, though there may be third-party applications which can alter it.
    As it's size is relative to the screen resolution, you could try reducing the resolution in System Preferences > Displays to see if that would suit you better.

Maybe you are looking for