ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: We are breaking Gump right now
Date Tue, 26 Apr 2005 13:58:03 GMT
You can use that perl script for the meanwhile :-)

Jan

---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<
----
use Win32::Clipboard;
$CLIP = Win32::Clipboard();

$clip = $CLIP->Get();
@lines = split /\n/, $clip;

$maxLen = 0;
$newClip = "";
foreach $line (@lines) {
    $out = "| $line\n";
    $maxLen = length($line) if $maxLen < length($line);
    $newClip .= $out;
}

$newClip = "/-" . "-" x $maxLen ."\n"
         . $newClip
         . "\\-" . "-" x $maxLen ."\n";

$CLIP->Set($newClip);
print $newClip;
print "\nCopied to clipboard.\nPress 'RETURN'.\n";

$pause = <STDIN>;
---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<
----

> -----Urspr√ľngliche Nachricht-----
> Von: Kev Jackson [mailto:kevin.jackson@it.fts-vn.com]
> Gesendet am: Dienstag, 26. April 2005 10:57
> An: Ant Developers List
> Betreff: Re: We are breaking Gump right now
> 
> Stefan Bodewig wrote:
> 
> >On Tue, 26 Apr 2005, Kev Jackson <kevin.jackson@it.fts-vn.com> wrote:
> >
> >  
> >
> >>this indenting style is really nice, obviously you have a tool that
> >>does it,
> >>    
> >>
> >
> >I live in XEmacs 8-)
> >
> >  
> >
> [sigh] if only I didn't have to use Windows... (I know you 
> can get emacs 
> for Windows, but it isn't the same as being on a proper OS)
> 
> >
> ><http://www.davep.org/emacs/#boxquote.el>
> >  
> >
> I shall investigate
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message