Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Regex: empty Writer table cells not found with ^$ | ||
---|---|---|---|
Product: | Writer | Reporter: | drking <openoffice> |
Component: | programming | Assignee: | AOO issues mailing list <issues> |
Status: | CONFIRMED --- | QA Contact: | |
Severity: | Trivial | ||
Priority: | P3 | CC: | issues |
Version: | OOo 2.3 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
drking
2007-11-04 10:06:56 UTC
Reassigned to SBA. "Real" (= newly inserted) empty paragraphs in tables do get found. But "the last one" is a little tricky. An "empty" table cell still looks like it has an "empty paragraph" in it. But this one can not be removed. Thus it makes no sense to select it via "Find and Replace" unless the replace string "brings the paragraph back" (i.e. in order to fill the empty table cells this way). This is not transparent for the user :-( Confirmed. Reassigned to requirements This issue relates to the fact that regex in OOo cannot go across paragraphs. E.g. you cannot change something like ^[:space:]*$^[:space:]*([:print:]) to $1 if you want, for instance, replace all manually formatted paragraphs with something else. This is a real exemple: sometimes we get texts that are totally manually formatted (from an ocr): all newlines are made using crlf, and all paragraphs are made by double-crlf. If I want to correct the formatting, I need to use msword. Nor you can insert paragraphs as a part of replacement. Hence the need to treat $^ as the special case, because it's the only way to get rid of empty paragraphs. Neither $ nor ^ represent a symbol by themselves, the "paragraph symbol" stays outside of them, it should not be affected by any replacement of the search like ^.*$ or even ^$, and there should be a way to specify the "paragraph symbol" in a query just as any other ordinary symbol. This would make the handle of ^$ consistent with all the other cases, making ^$ match the empty cell in a table (as it would not be tied to the "paragraph symbol" anymore, just to the beginning and the end of a block of text). |