Issue 94796 - Allow search & replace of paragraph-end to line-break
Summary: Allow search & replace of paragraph-end to line-break
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 2.4.0
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2008-10-09 07:53 UTC by windl
Modified: 2013-12-10 13:42 UTC (History)
2 users (show)

See Also:
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description windl 2008-10-09 07:53:13 UTC
When inserting code samples into a text document, each line usually forms a
paragraph then. When using styles, it makes much more sense to replace the
end-of-paragraph marks with end-of-line (Shift+Enter) marks.
Using search and replace, there exists the possibility to use "\n" to replace
end-of-line with end-of-paragraph (by using "\n" for text to search and for
replacement), but exactly the opposite is needed.
Therefore I suggest to had different search tokens for end-of-paragraph and
end-of line.
Comment 1 eric.savary 2008-10-13 11:08:48 UTC
Reassigned to SBA
Comment 2 michael.ruess 2008-10-16 10:56:15 UTC
Reassigned to SBA.
Comment 3 windl 2008-10-22 10:28:15 UTC
An alternative (or additional) solution that came into my mind was this: The
dialogue for inserting a file at the cursor position could ask how to handle
end-of-line sequences:
( ) treat end-of-line as end of paragraph
( ) treat end of line as manual line-break
( ) ignore end-of-line, adding to the current paragraph

Overall I thought not causing the problem is better than, having the problem,
and then fix it (by search & replace).
Comment 4 Edwin Sharp 2013-12-10 13:42:50 UTC
From help:
"\n in the Search for text box stands for a line break that was inserted with the Shift+Enter key combination.
\n in the Replace with text box stands for a paragraph break that can be entered with the Enter or Return key."

\n should mean the same in any text box - need a separate reular expression for paragraph break.