From: Andreas Schwarz Date: 2003-08-23T03:18:26+09:00 Subject: Line wrapping Hello, I'm using the following function for line wrapping (found it somewhere in the list archive): def wrap(s) return s.gsub(/.{1,74}(?:\s|\Z)/){($& + 5.chr). gsub(/\n\005/,"\n").gsub(/\005/,"\n")} end Any hints how I can change the function so that it doesn't touch lines with quoting characters (">", "|") in the beginning? Thanks Andreas -- AVR-Tutorial, �ber 350 Links Forum f�r AVRGCC und MSPGCC -> http://www.mikrocontroller.net