Forced Line Break and Paragraph Return

Hi.. It´s maybe a simple question but I cannot see diferences.
What´s the difference between Forced Line Break and Paragraph Return ?
Thank's for the answer

A force line break is still the same paragraph. You won't see a difference unless there is some text change with each new paragraph, such as a style change or the addition of space before or after a paragraph. The forced line break can also be used as a trigger in a nested style to make the first line or lines formatting for a paragraph different from the following lines.
Peter

Similar Messages

  • Deleting extra forced line breaks with Find/Change

    Ladies and Gentlemen,
    I'm importing word .doc that are text-heavy and the formatting is such that there are lots of extra forced line breaks creating a blank line between paragraphs.
    To avoid manually deleting the extra forced line breaks to eliminate the blank line of space between paragraphs, what are the best steps to doing this an easier way?
    Any advice on clear steps to do it using the find/change option?
    Thanks in advance as always..
    JRH

    Are you talking about two hard returns [Enter] in a row, or a soft and hard return [Shift + Enter] and [Enter]? A forced line break is a soft return, but most Word users would just hit the return key for an empty paragraph to get an empty line.
    In either case, you can do a simple text find change, if GREP intimidates you. Use the special characters menu to enter either two "end of paragraph" or a "forced line break" and "end of paragraph" markers into the find field and a single "end of paragraph" marker into the change field.
    This is included as part of the "Find/change by list" sample script which adds some other common cleanup functions like converting two spaces to one. The advantage to using GREP is it will find any number of consecutive paragraph end markers and convert to one in a single pass, while a text search must be run multiple times to catch the heavy handed author.
    Peter

  • Read Only TextAreas with Carriage Return, Line Breaks and Word Wrapping

    Hi all,
    I know there are a few posts around this subject but I cannot find the answer to the exact problem I have.
    I have a page that has a 'TextArea with Character Counter' (4000 Chars) that is conditionally read only based on the users credentials (using the 'Read Only' attributes of the TextArea item).
    When the field is editable (not Read Only) everything works fine but when I make the field Read Only I start to have problems:
    The first problem is that the Carriage Return and Line Breaks are ignored and the text becomes one continuos block. I have managed to fix this by adding pre and post element text of pre and /pre tags. This has made the Carriage Return and Line Breaks word nicely and dispaly correctly.
    However, it has introduced a second problem. Long lines, with no Carriage Returns or Line Breaks, now extend to the far right of the page with no word wrapping, making my page potentially 4000+ characters wide.
    How can I get the field to be display only, with recognised Carriage Returns and Line Breaks, and Word Wrapping inside a fixed width of, say, 150 characters?
    Many thanks,
    Martin

    Hi,
    Just a cut and paste of yours with the field name changed:
    htp.p('<script>');
    htp.p('$x("P3_COMMENTS").readonly=true;');
    htp.p('</script>');I also have the following in the page HTML Header, could they be conflicting?
    <script type="text/javascript" language="JavaScript">
    function setReleaseToProd(wpTypeCode){
       //setReleaseToProd($v(this))
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=set_release_to_prod',0);
      get.addParam('x01',wpTypeCode);
      gReturn = get.get();
      if(gReturn) {
         $s('P3_RELEASE_TO_PROD',gReturn);
      get = null;
    </script>I am a long way from knowing much about Javascript (this page code was written by someone else) so all help is much appreciated.
    Martin

  • When exporting XML files, I get forced line breaks before and after my xmltag

    hi everybody,
    as I said, i do a javascritp that exports xml files. First I clean up my text by removing every invisible characters with app.findpreferences. Nevertheless, my xml files is almost well formed beacause i got before and after each xmltag a forced line break. Somebody could explain to me why ?
    I don't use prettyIndent and prettyPrinting .
    Best regards
    Américo Pinto

    hi everybody,
    as I said, i do a javascritp that exports xml files. First I clean up my text by removing every invisible characters with app.findpreferences. Nevertheless, my xml files is almost well formed beacause i got before and after each xmltag a forced line break. Somebody could explain to me why ?
    I don't use prettyIndent and prettyPrinting .
    Best regards
    Américo Pinto

  • Clear or Override Forced Line Breaks?

    This is probably really simple, but I searched the help file and didn't find it.
    - How do you clear all forced line breaks in a paragraph?
    I'm editing text that we thought was fairly final, and I usually work in Preview mode as it's cleaner and easier to see what's going on. But I'm fearful of any forced line breaks that I may not know about that could mess up the paragraph flow after I make changes. The text is fully justified.
    I know I can work in Normal mode and turn on 'View Hidden Characters' to see them. But even with that, they can sometimes be small and hard to see depending on the complexity of the type and how zoomed-in I am.
    - Isn't there a simple key command to override forced line breaks?
    THANKS!

    OK. Thanks. I knew that would be an option, I just think I confused a couple other features with what I was hoping to do.
    I may have been confusing 'Clear Local Overrides' when updating a paragraph style, and the ability to have certain things highlighted (custom tracking/kerning, glyphs, etc.), with an ability to clear forced line breaks with a simple key-command or palette menu item.
    Thanks, though.

  • Fix the forced line break bug already!

    Illustrator has had the same bug since version 11. In 5 consecutive versions!
    Forced line break in a justified text behave like a paragraph ending (Enter) aligning the line before the forced line break left. It looks like a new paragraph but it is just incorrectly aligned line in the middle of a paragraph.
    Also Find & Replace recognizes only forced line break but (^n) not paragraph ending (^p) although both can be used in text.
    Since discretionary hyphens do not have an effect whatsoever it requires a lot of manual editing to make typographically acceptable text block to the back of a book jacket.
    So, Adobe. How hard is exactly fix this very annoying bug which has been reported dozens of times? It has even been demonstrated to your tech people who agreed that it really is a bug and should be fixed.

    A force line break is still the same paragraph. You won't see a difference unless there is some text change with each new paragraph, such as a style change or the addition of space before or after a paragraph. The forced line break can also be used as a trigger in a nested style to make the first line or lines formatting for a paragraph different from the following lines.
    Peter

  • New line break and extra blank space characters disappear after submit form?

    Hello,
    I have a PDF form with a Submit button that is dynamically created in my code to send the form data to the server in HTML format.
    After the form data is received on the server side, all strings with new line break and extra blank spaces are gone.
    For example, if I enter string in a text field as shown below on the form:
    Hello   ,  
    this is  
        just a
    test
    After the form data is sent to the server, this string would become:
    Hello , this is just a test
    New line breaks are gone. Also, if there is more than 1 blank space character between 2 characters, the extra blank space characters would be removed as well.
    It does not only happen to multi-line text field, even with single-line text field. If I have a string like this in a single-line text field:
    Hello         this is just              a         test
    After the form data is sent to the server, it would become:
    Hello this is just a test
    The form is created in OpenOffice then converted to PDF. The Submit button is created in my program using iText.  I have no idea it is iText that trims my string or PDF itself does it.
    Can anyone give me any possible explanation? Thanks.

    That is not what I get. Since it's URL-encoded, spaces are represented by the "+" character and carriage returns are represented by the "%0d%0a" (cr/lf) sequence.
    Are you looking at the actual data that getting sent to the server or the output from the server after it processes it?

  • Creating a PDF in pages that retains all line breaks and formatting as source

    Currently when we get pages documents, we convert them to PDF and send them off to be converted by a partner. We do this because said partner doesn't accept pages.
    However, lately we've found issues in PDFs created by pages that do not retain styling nor line breaks correctly.
    Example for line breaks:
    The quick brown fox
    jumped over the lazy dog.
    When converted to PDF it shows exactly the same on the PDF, as it did pages. The paragraph breaks are retain in the pages document, and the PDF looks correct.
    But when you copy/paste the text (which is generally how we test how valid the actual text is) you get something like:
    The quick brown
    fox
    jumped over the lazy dog.
    In some cases we even get line breaks on every word.
    We used the Export to PDF feature, the Print to PDF feature, and even generated a postscript and distilled with Acrobat Pro.
    Does anyone know how to solve this? It seems anything generated with QuartzPDFContext has issues.

    Interesting that preview works, but not Acrobat. Thanks!
    We are using export to word as a second option. The formatting (as in exact spacing and such) isn't always 100% retained. PDF afterall is a representation of what the customer wants. We don't always suggest it but in some type of books it helps.

  • Line breaks and wrapping incorrect on hebrew+english text

    i have a string of mixed text with hebrew and english, usually the english is only the last word in the string.
    when trying to show on a limited space (110px more or less) the line break looks like it performs incorrectly since the string is all mixed and it shows the english word in between the hebrew words.
    I'm using the following, in a *pure* as3 project in the flex ide using sdk 3.5 and last version textframework swc.
    private function addText():void{
         //title is a string brought from xml.
         title = "Canazei סקי איטלקי במיטבו בעיירה";
         var titleLine:StringTextLineFactory = new StringTextLineFactory();
         titleLine.text = title;
         titleLine.paragraphFormat
         titleLine.compositionBounds = new Rectangle(0,0,120,120);
         titleLine.spanFormat = formatMe(blue, 12, "bold");
         titleLine.createTextLines(callbackTitle);
         function callbackTitle(tl:TextLine):void{
              addChild(tl);
              tl.y = 12;
              tl.x = 109 - tl.width;
    //thats the formatMe function:
    public function formatMe(colour:uint, size:uint, weight:String):TextLayoutFormat{
         characterFormat = new TextLayoutFormat();
         characterFormat.fontSize = size;
         characterFormat.color = colour;
         characterFormat.direction = flashx.textLayout.formats.Direction.LTR;
         characterFormat.textAlign = flashx.textLayout.formats.TextAlign.START;
         characterFormat.fontFamily = "Arial, Helvetica, _sans";
         characterFormat.lineHeight = "100%";
         if (weight == "bold"){
              characterFormat.fontWeight = flash.text.engine.FontWeight.BOLD;
         return characterFormat;
    any help with this will be greatly appreciated, unfortunately the bidi support is not clear and sometimes the examples in the docs are not working.

    I played around with your example a little, and removed the explicit line placement you added, and have this (see below). It works as expected if you consider English the dominant language. If you wanted it to assume Hebrew instead, you should set the direction to RTL instead of LTR. Please let me know if this works for you.
    Thanks!
    package
        import flashx.textLayout.elements.TextFlow;
        import flashx.textLayout.factory.StringTextLineFactory;
        import flashx.textLayout.formats.TextLayoutFormat;
        import flash.geom.Rectangle;
        import flash.display.Sprite;
        import flash.text.engine.TextLine;
        public class TCMTestFocus extends Sprite
            public function TCMTestFocus():void{
                //title is a string brought from xml.           
                                                var    title:String = "Canazei סקי איטלקי במיטבו בעיירה";
                var titleLine:StringTextLineFactory = new StringTextLineFactory();           
                titleLine.text = title;
                titleLine.paragraphFormat
                titleLine.compositionBounds = new Rectangle(0,0,120,120);
                titleLine.spanFormat = formatMe(0x0000FF, 12, "bold");
                titleLine.createTextLines(callbackTitle);
                function callbackTitle(tl:TextLine):void{
                    addChild(tl);               
            //        tl.y = 12;               
            //        tl.x = 109 - tl.width;
        public function formatMe(colour:uint, size:uint, weight:String):TextLayoutFormat{
                var characterFormat:TextLayoutFormat = new TextLayoutFormat();           
                characterFormat.fontSize = size;
                characterFormat.color = colour;
                characterFormat.direction = flashx.textLayout.formats.Direction.LTR;
                characterFormat.textAlign = flashx.textLayout.formats.TextAlign.START;
                characterFormat.fontFamily = "Arial, Helvetica, _sans";
                characterFormat.lineHeight = "100%";
                if (weight == "bold"){
                    characterFormat.fontWeight = flash.text.engine.FontWeight.BOLD;
                return characterFormat;

  • Line Breaks and Preferred Carrier Text

    I support our E-Commerce (ISA 5.0) web application. We are using the R/3 edition, which in our case is an ECC6 backend (not CRM).
    Anyhow, I am pulling the customer preferred carrier text from the vendor master into the web application. Once I have it, I am appending additional text (ex, "Qualifies for FREE FREIGHT") to it, then sending it back to ECC6 when the order is send/saved.
    To set the text I'm using the following line of code....
    ui.header.setText(new Text("100", appText));
    with appText = "FREE FREIGHT" + "\r\n" + preferredCarrierTextFromR3;
    Here is my problem. Last year, when our backend was R/3 6.40c, this worked fine. This year, however, the "\r\n" are being 'translated' as garbage characters (# signs), and thus ignored. So, when this modified preferred carrier text is printed to a Pick List, for example, the text is overwriting. You can actually see # signs printed where last year a line break would occur, and thus, the preferred carrier text is printing directly on top of the "FREE FREIGHT" text.
    I've tried everything I could Google as a replacement for "\r\n", but I have yet to find a solution to the problem. I've tried string buffer, line.separator, chr(10), chr(13) and just about any other suggestion I could find.
    I should add that I'm not really sure what is causing the line break characters to not be recongnized correctly.
    Anyone have any ideas?
    I appreciate any and all feedback.
    Thank you,
    Bryan
    Edited by: Bryan Fickle on Feb 21, 2008 11:04 AM

    I support our E-Commerce (ISA 5.0) web application. We are using the R/3 edition, which in our case is an ECC6 backend (not CRM).
    Anyhow, I am pulling the customer preferred carrier text from the vendor master into the web application. Once I have it, I am appending additional text (ex, "Qualifies for FREE FREIGHT") to it, then sending it back to ECC6 when the order is send/saved.
    To set the text I'm using the following line of code....
    ui.header.setText(new Text("100", appText));
    with appText = "FREE FREIGHT" + "\r\n" + preferredCarrierTextFromR3;
    Here is my problem. Last year, when our backend was R/3 6.40c, this worked fine. This year, however, the "\r\n" are being 'translated' as garbage characters (# signs), and thus ignored. So, when this modified preferred carrier text is printed to a Pick List, for example, the text is overwriting. You can actually see # signs printed where last year a line break would occur, and thus, the preferred carrier text is printing directly on top of the "FREE FREIGHT" text.
    I've tried everything I could Google as a replacement for "\r\n", but I have yet to find a solution to the problem. I've tried string buffer, line.separator, chr(10), chr(13) and just about any other suggestion I could find.
    I should add that I'm not really sure what is causing the line break characters to not be recongnized correctly.
    Anyone have any ideas?
    I appreciate any and all feedback.
    Thank you,
    Bryan
    Edited by: Bryan Fickle on Feb 21, 2008 11:04 AM

  • DefaultStyledDocument - JTextPane - Forcing Line Breaks

    Well i have a defaultstyled document put into a JTextPane.
    Now when the user puts text into it and it reaches the end of the
    line in the jtextpane it auto word wraps down to the next line.
    HOWEVER, it does not add a line break into the actual document, it is just what the jtextpane does or something.
    What i want is to add a line break into the actual document once it reaches the end of the line and auto wraps down to the next line.
    Any suggestions how to do this easily?

    Move to top. Need a solution.

  • JeditorPane text selection problem due to line feeds and carriage returns

    Hi folks,
    I have a jEditorPane (text/plain) that contains a document in which the user has highlighted some text. I want to pull the selected text from the pane, do some processing on it, and then put the altered text back in the same position.
    First I get the starting and ending position of the highlighted text
    int mySelStart = myJEditorPane.getSelectionStart();
    int mySelEnd = myJEditorPane.getSelectionEnd();Then I get all the text from the pane and (in theory) strip out the portion the user highlighted
    String myPaneText = myJEditorPane.getText();
    String mySelectedText = myPaneText.substring(mySelStart,mySelEnd);But the text string in mySelectedText never matches what the user originally highlighted. The starting and ending positions are off by the number of carriage returns that proceed the highlighted text in the document. It appears that while in the jEditorPane Java treats the carriage return as one characters, but once the info is in the myPaneText field Java treats the carriage return as two characters.
    Has anyone encountered this before? Am I doing something wrong? To fix the problem I'm looping through the entire document to find out how many carriage returns proceed the highlighted text, but there has to be an easier way.
    Thanks

    It appears that while in the jEditorPane Java treats the carriage return as one
    characters, but once the info is in the myPaneText field Java treats the carriage
    return as two characters.Correct on a Windows platform. Check out my posting here for a one line solution:
    http://forum.java.sun.com/thread.jspa?forumID=31&messageID=1464594

  • JTextPane HTMLDocument to string missing lines \n and paragraphs

    I have a JTexpane using an HTMLDocument and I use this function to save the content into a String
        protected String saveToBuffer(HTMLDocument lpd){
         HTMLEditorKit  html  = new HTMLEditorKit();
         try{
                   OutputStream out = new ByteArrayOutputStream()  ;
                   html.write(out, lpd, 0, lpd.getLength());
                         String ret = out.toString();
                         return (ret)
         }catch (Exception ex) {
              System.out.println(ex.toString());
              return ("");
        }It works ok with the formats, but the newlines (\n) ar leave as \n
    so when I set it again to de JTexpeane al the text turns into a single line
        protected void LoadFromBuffer(HTMLDocument lpd,String cadena,boolean clean){     
         HTMLEditorKit  html  = new HTMLEditorKit();
         if (clean){
              try{
                   lpd.remove(0, lpd.getLength());
              }catch (BadLocationException ex) {}
         try{
              html.read(new StringReader(cadena) , lpd, lpd.getLength());
         }catch (Exception ex) {
              System.out.println(ex.toString());
        }Edit:
    I have a "simple solution" Straiting the body from the String "ret" and changing \n for <br>
    but there must be a better way ...
    Edited by: Harl on Dec 12, 2007 9:56 AM
    Edited by: Harl on Dec 12, 2007 9:58 AM

    That return the same thing.
    Now I have "good" solution:
         protected void OnKeyPressed(KeyEvent e){
              if (e.getKeyCode()==KeyEvent.VK_ENTER){
                   try{
                        int pos = comen.getCaretPosition();
                        kit.insertHTML(styledDoc,pos,"<BR>",0,0,HTML.Tag.BR);
                        e.consume();
                        comen.setCaretPosition(pos+1);
                   }catch (Exception ex) {}
         }So when enter is pressed the Tag.BR is inserted and the \n is removed (If not two new lines appears)
    But I really don't understand why this isn't the default behaviour when HTMLDocument and HTMLEditorKit are set in the JTextPane

  • New line character and carriage return in XML, please help, thanks

    In XML, "&#10;" is only the new line character. I have tried that. If you put that in your XML, for example:
    <tag>line1&#10;line2&#10;line3</tag>
    You will get the output as follow:
    line1
    ____line2
    ________line3
    (where ___ represents space)
    The output that I want is actually like:
    line1
    line2
    line3
    So I would like to ask how I can do this.
    Thanks,
    Jackie

    while parsing your XML file you can directly suppress these newline and similar things in characters() method of SAX parser.
    you can opt to do nothing when you encounter them else if it is normal character then use it to print it.

  • Captivate - Size of HTML5-published progress indicator forces line break

    For some odd reason the first 9 questions of many of the quizzes we generated are rendered in HTML5 with a width smaller than what is show in Captivate.
    * We use the MCQ master slide to publish our questions
    * The width of the Progress indicator is 110
    * Oddly enough, the actual questions originally show different width values
    * I change the width to 110 on one of the questions and click the menu to 'Apply to all items of this type'
    * Ok... it appears that they all are changed to the same width
    * Publish the quiz. Questions 1-9 still show an incorrect size. e.g., the div width for question #1 is 86 and all the other params appear to be consistent with what is set in Captivate

    This seems to be a caching issue when publishing to the same folder. I have been seeing (some?) of the same content each time I check for different results and not the newly generated content.

Maybe you are looking for

  • Configured source directory does not exist

    Hi Guys, I had configured a sender file adapter and when i check the CC monitoring it gives the message : Configured source directory '/usr/sap/NRD/SYS/global' does not exist. But the directory is in the AL11 of R/3 application server. Iam using the

  • Contents thumbnails not showing

    I just generated two new single-folio apps. In the Contents menu, the thumbnail images are not showing. Where the contents thumbnails should be, only a capital letter is displayed. What would cause the thumbnail images to not show? How do I fix it? D

  • DRM migration issue. Migrating from 11.1.1.3 to 11.1.2.1 using Repository

    Greetings, looking for some assistance and hopefully one of our colleagues can assist. When running the repository wizard, we get the following message during the schema copy process: RM_USER -Table does not have a primary key. Once that message disp

  • Adding background image using Loader ()

    Hi all, Am working on a simulation and am running into some trouble. I am attaching what I have so far. (I'm just in beginning stages so it's nothing fancy) What I still need to do is place the main image into the code using this code: var somePictLd

  • File Not Found error when submitting PDF

    I've created a fillable PDF and set it to send completed submissions to http://www.domain.com/forms/ but I get this error message (even when I changed the folder permissions to 0777 from 0755 for a few seconds): Not Found The requested URL /forms/ wa