Hi, Searched for this everywhere, so here goes.
I am having trouble matching multiline strings with leading whitespace in them using the """ operator. E.g. Then the output should be """ Usage: mygem [options] destination Template Options: -r, --ruby install the ruby template --ruby-19 install the ruby-19 template General options: -f, --force force overwriting files, don't ask -s, --skip skip file if it exists -q, --quiet runs quietly, no output -V, --verbose Show lots of output -v, --version Show this version -p, --pretend dry run, show what would have happened -x, --debug Show debugging output -h, --help Show this help """ I am generating this (almost) t am I doing wrongexact output with 5 leading space before the options, but the expected string is collapsing them down to one leading space: Diff: @@ -1,15 +1,14 @@ +Ok + Usage: mygem [options] destination -Template Options: - -r, --ruby install the ruby template - --ruby-19 install the ruby-19 template General options: - -f, --force force overwriting files, don't ask - -s, --skip skip file if it exists - -q, --quiet runs quietly, no output - -V, --verbose Show lots of output - -v, --version Show this version - -p, --pretend dry run, show what would have happened - -x, --debug Show debugging output - -h, --help Show this help + -f, --force force overwriting files, don't ask + -s, --skip skip file if it exists + -q, --quiet runs quietly, no output + -V, --verbose Show lots of output + -v, --version Show this version + -p, --pretend dry run, show what would have happened + -x, --debug Show debugging output + -h, --help Show this help What am I doing wrong? Thanks Cheers, Ed Ed Howland http://greenprogrammer.wordpress.com http://twitter.com/ed_howland _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users