A
Andreas Schwarz
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
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