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

Similar Messages

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

  • PO Release Strategy not changed after deletion of few line items with less

    Subject : PO Release Strategy not changed after deletion of few line items with less Total PO
    Dear Friends
    We have issue with PO Release strategy. We have created the PO. with release strategy  with multiple approvers.  After approval of first approval manager , one of the PO line item got deleted and Total PO value is reduced . The new PO value should have changed the PO release strategy. But it is not changed. Old release strategy only showing in the PO which is wrong. 
    Details of the PO
    PO no 4500000123 with 5 line items Total PO value : 100,000 USD Release strategy : AB
    PO line item 5 deleted. Now total PO value changed to 50,000 USD and the PO release strategy should have been changed to AA but not changed. Still showing PO release strategy AB only.
    Are there any OSS notes available to correct his bug.
    Please let me know if you need more details
    Thanks in Advance
    Thanks
    MVS

    Hi,
    release indicators  change it to 4.It may works. Please explore to all 6 indicators..........
    i.e,
    1-cannot be changed
    2-changable,no new determination of strategy
    3-changable,new release in case of strategy
    4-changable,new release in case of strategy or value change
    5-changable,new release if new strategy/outputted
    6-changable,new release if new strategy or value changed/ outputted......
    And check   Characteristic description and value in Classification  of Release strategies ........
    I hope this will help you. Thanking you.
    Regards,
    Venkat.

  • 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

  • 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

  • Replace Mac line breaks with Windows linebreaks?

    Is there a simple AppleScript that could process a plain text file created on a Mac and replace the line breaks with Windows-compatible \r\n line breaks?
    I thought this would be a very simple task but have been searching for quite a while and can't find anything.
    Thanks.
    Paul

    There are several approaches to this. Here's one of them:
    set theFile to (choose file)
    set MacText to paragraphs of (read theFile)
    set {oldDelims, my text item delimiters} to {my text item delimiters, (return & linefeed)}
    set WindowsText to MacText as text
    set my text item delimiters to oldDelims
    set outputFile to (open for access theFile with write permission)
    set eof outputFile to 0
    write WindowsText to outputFile
    close access outputFile
    To explain, the first line asks you to choose the file in question - you could use any technique to identify the file, including hard-coding the path or using a drag-and-drop handler.
    The second line gets the current paragraphs and calls them 'MacText'
    The third line saves the current text item delimiters in oldDelims and sets the new text item delimiters to the CR+LF combination.
    The fourth line performs the magic of transforming the file. It does this by coercing the list of paragraphs (obtained in line 2) into a single text block, and it inserts the current text item delimiters between each text item, miraculously giving you CRLF-terminated paragraphs.
    The fifth line restores the text item delimiters to whatever they were before (you don't know what they were, but don't need to know what they were, as long as you restore the previous setting - it's unlikely you want CRLF moving forwards).
    The rest of the script (lines 6 through 9) reopen the file you originally selected, sets the EOF to 0 (effectively wiping the file contents), then writes the CRLF-terminated text to the file and finally closes the file.
    Note that some people might suggest using text item delimiters to break up the original text file on CRs but that would be wrong IMHO. The reason is that 'paragraphs of' can detect and handle both CR and CRLF-terminated paragraphs, leaving you with clean paragraphs into which you insert CRLFs.
    This means that if the file originally had CRLF-terminated paragraphs you'd end up with the same data, but at least there was no harm done.
    In contrast, if you simply searched for CRs and replaced them with CRLFs you could have the situation where you selected a CRLF-terminated file (maybe you didn't realize it was already in the Windows format) and your script would blindly replace each CR with CRLF, meaning you'd end up with CRLFLF combinations, which is very wrong.

  • 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

  • Ignore Line break in find text using grep

    Hi everyone!
    I need to find the text in document using grep.
    find text for :
    Xereptatiuria que alique volo eium qui dolupid ut
    voluptatiam earum saestorepel iuscit im quas et modisimodit.
    The above sentence cannot having line breaks. But document having multiple line breaks.
    so, please to give a tip to find the text using grep.
    I am not excepting this type of result by following.
    Xereptatiuriaque\n alique volo\neium qui dolupid ut\r voluptatiam earum\n saestorepel iuscit im quas et\n modisimodit.  ------------this is not.
    Any another way to find (i.e)., ignore the line break
    simply like this, 
    (?s:Xereptatiuria que alique volo eium qui dolupid ut
    voluptatiam earum saestorepel iuscit im quas et modisimodit.)      --------- the line break wherever it is found,ignore line break in single command.
    Thanks by,
    John Peter.

    johnp45247251,
    what do you really want to do?
    Like pkahrel in your other thread Find Grep And Ignore the line break said:
    pkahrel schrieb:
    You're a moving target: you change your question in each post. Do yourself a favour and go and read up on GREP.
    johnp45247251, one question:
    Could it be possible, that you doesn't understand correctly, how Grep really works?
    <edit by pixxxel schubser>
    Furthermore your example text is different to your screenshot. Your text is:
    »Xereptatiuriaque\n alique volo\neium qui dolupid ut\r voluptatiam earum\n saestorepel iuscit im quas et\n modisimodit.«
    And your screenshot shows:
    »Xereptatiuriaque\n alique volo\n eium qui dolupid ut \rvoluptatiam earum\n saestorepel iuscit im quas et\n modisimodit.«
    Normally the text should look like this:
    »Xereptatiuriaque\nalique volo\neium qui dolupid ut\rvoluptatiam earum\nsaestorepel iuscit im quas et\nmodisimodit.«
    Please explain what do you really want to do and exactly if additional spaces are exists or not!
    Could it be:
    you have a text with paragraphs and with many line breaks in that paragraph and there are no spaces exists before or after your line breaks. And is your destination to remove all the line breaks from your text?
    </edit by pixxxel schubser>
    Then the way is not to find the text completly and to ignore the line breaks – the way is to find the line breaks and replace with a space, e.g. like that:
    find:
    \n
    replace with:
    \s
    (change all)
    Regards
    pixxxel schubser

  • Missing line breaks with Excel

    Hello,
      Am downloading certain into Excel using BSP. I am changing response mime type to "application/vnd.ms-excel" and am sending tab-demilited string as data.
      Some of the columns should contain line break within the cell( Mean the Alt-Enter in Excel cell ). I tried using the character code 10 and also 13 for the break. But it did not work.
      How do I cause a line-break in the Excel cell? Any work-arounds??
    Thanks.
    Srinivas.

    Hi Srinivas,
    I think you don't have the possibility to add line breaks into a tab seperated file. You rearly had to create an excel file. Unfortenately AFAIK this is not possible in ABAP. I've done this in PHP using the <a href="http://pear.php.net/package/Spreadsheet_Excel_Writer">Spreadsheet_Excel_Writer</a>.
    Regards
    Gregor

  • Help with Find/Change and wildcards

    I have indesign CS5 and I'm working on a document that has math examples throughout such as 9-1=8. The proofreader said we need to change it to have a space between each digit and math symbol to be 9 - 1 = 8. How can I do this? When I go to Find/Change I have the option of wildcards in the Find, but not in the Replace.
    Also the dash in these equations need to be changed to en dashes. How can I tell indesign that anytime is sees such an equation the dash needs to be changed? I don't want to just change all dashes as I have many dashes that need to stay.

    I do it in two steps, first changing the hyphens to en-dashes:
    Find (?<=\d)-(?=\d) which finds any hypen between two digits
    Replace ~= which is the en-dash
    Then use a class to hold the math symbols:
    Find (\d|\))([\+\*/~==])(\d|\()   (this adds open and close parentheses to the search before or after a symbol -- if your equations don't use parentheses you can eliminate the |\( and |\) from the first and last search groups)
    Replace $1 $2 $3  (there's a space between the terms there).
    This does not include radicals, or advanced math symbols in the search, so if your equations use those, you need to add them, and it doesn't put spaces between digits and parentheses.

  • Line break with voice control (dictation)

    Hi there,
    How can I get a line break (or section break) while using voice control (dictation)???
    Thanks a lot!!
    Cheers!
    Boscha
    current device: BB Q10 (OS 10.3.1.1565)
    former device: Bold 9780 (OS 6 - FW 6.0.0.534)
    Carrier: O2-Germany

    When I click the mic icon on my Q10-screen the dictation stops... no line break!
    Please help!!
    current device: BB Q10 (OS 10.3.1.1565)
    former device: Bold 9780 (OS 6 - FW 6.0.0.534)
    Carrier: O2-Germany

  • Insert Line Break with Syndicator

    Hello,
    I have a quite "simple" question: Is it possible to insert a linebreak after a record set using the MDM Syndicator? By default there are some values offered, like ',' or ';' and so on to seperate values, and you can specify seperators by your own. But how to specify a line break?
    Thanks for your replies!
    Andreas

    Andreas,
    As far as I know, there is no support for specifying the line break. The records automatically appear in separate rows (If you are using Flat file as Destination).
    If you still need to specify your own custom character at the end of each line, create a "Custom Item" and enter the required character in the "Formula" for Custom Item and map this custom Item to a newly created destination field (at the end of all destination items).
    Hope this helps,
    Regards,
    Rajani Kumar

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

  • Showing all values for Multiple Line field with Append Changes

    I have a simple SharePoint list with a multiple line column that has append changes enabled. I am doing a report with Report Builder 3.0 and I want to show all values of the field the same way you achieve it through a DVWP using:<SharePoint:AppendOnlyHistory
    FieldName="Comments" runat="server"
    ControlMode="Display" ItemId="{@ID}"/>
    For reference, I'm trying to replicate this function, but on a report:
    http://sympmarc.com/2011/02/07/showing-all-versions-of-append-changes-to-existing-text-in-a-data-view-web-part-dvwp/ 
    Any suggestions to show all the appended values in a report?

    Hi Lewis75581,
    According to your description, you want to show the append changes history of a column in Reporting Services. Right?
    In Reporting Services, we don't have a feature to show the change history of a column. However, we can have workaround on SQL level. In SQL Server, we have tables: inserted table and deleted table which contains the recently inserted and deleted records.
    In this scenario, we can create a trigger in your database. Once you insert rows into the table, it will be triggered and get those inserted rows. Then insert those rows into another table. Now we can create one more dataset based on this table and display
    these inserted rows in our report. This might be the most effective workaround for your requirement. Please refer to a similar thread below:
    http://social.technet.microsoft.com/Forums/en-US/dacfb141-a976-489a-acca-789ba90e15de/ssrs-multiple-reports-with-different-parameteres-in-single-window?forum=sqlreportingservices
    Reference:
    Use the inserted and deleted Tables
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • SSRS (Report Builder 3.0) Showing all values for Multiple Line field with Append Changes

    I have a simple SharePoint list with a multiple line column that has append changes enabled. I am doing a report with Report Builder 3.0 and I want to show all values of the field the same way you achieve it through a DVWP using:<SharePoint:AppendOnlyHistory
    FieldName="Comments" runat="server"
    ControlMode="Display" ItemId="{@ID}"/>
    Any suggestions to show all the appended values?

    Hi,
    I am trying to involve someone familiar with this topic to further look at this issue.
    Regards,
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for