Ticket #208 (closed defect: fixed)

Opened 6 months ago

Last modified 5 months ago

ReplaceRegexp problem with newline as replace string

Reported by: dthomas Assigned to: hans
Priority: major Milestone: 2.3.1
Component: phing-core Version: 2.3.0
Keywords: Cc:

Description

The documentation of the ReflexiveTask contains the following example:

<reflexive>

<fileset ... />
<filterchain>

<replaceregexp>

<regexp pattern="\n\r" replace="\n"/>

</replaceregexp>

</filterchain>

</reflexive>

But the modified files contain the string "\n" instead of the expected newline.

PS: shouldn't the pattern be "\r\n" instead for windows?

Attachments

Change History

01/30/08 19:58:57 changed by mrook

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in r346, thanks!


Add/Change #208 (ReplaceRegexp problem with newline as replace string)




Action