Re: [Parseperl-discuss] [PATCH] preserve newlines
Brought to you by:
adamkennedy
|
From: Chris D. <ch...@ch...> - 2006-10-05 07:12:27
|
On Oct 5, 2006, at 1:14 AM, Adam Kennedy wrote:
> So I guess to start with, we need to take the input string, and detect
>
> 1. All Unix
> 2. All Win32
> 3. All Mac
> 4. Mixed Unix-dominant
> 5. Mixed Win32-dominant
> 6. Mixed Mac-dominant
>
> :/
>
> So... $doc->{newlines} = 'unix|win32|max' and $doc->
> {newlines_mixed} = 1|0
>
> What do you think?
Sounds good. Instead of "unix/win/mac" I'd prefer "NL/CRNL/CR" as
the identifiers to be platform agnostic.
Chris
--
Chris Dolan, Software Developer, Clotho Advanced Media Inc.
608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703
vCard: http://www.chrisdolan.net/ChrisDolan.vcf
Clotho Advanced Media, Inc. - Creators of MediaLandscape Software
(http://www.media-landscape.com/) and partners in the revolutionary
Croquet project (http://www.opencroquet.org/)
|