https://bugs.documentfoundation.org/show_bug.cgi?id=165931

            Bug ID: 165931
           Summary: Regular expressions must be able to match non-break
                    line endings
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

In a plain text editor, regular expressions are able to match line start and
line end; and since lines only end with a newline character, i.e. hard-broken,
that is fine (ignoring multi-line match capability of course).

Now, in LibreOffice, lines may be broken because of the paragraph dimensions -
the text area width. This is not an ephemeral word-wrap like in a text editor,
which is not really a feature of the content, just of the editor window.

It is thus legitimate for the user to want to match Lines ending ...:

1. regardless-of-the-reason, i.e. either wrapping, line-break, paragraph break
or end-of-content (in a table cell, in a section, in the document etc.)
2. due to word wrap only.
3. due to line-break.
4. due to end-of-content.
5. due to paragraph break (including section break, page break etc.)

What LO currently offers is matching (3.) with \n and matching (4.) with $  -
and that's not nearly good enough.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to