1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-13 23:10:26 -08:00
emacs/mps/qa/test/script/display
Richard Tucker 4791c25ee6 Make cleverer
Copied from Perforce
 Change: 20164
 ServerID: perforce.ravenbrook.com
1998-10-06 16:30:26 +01:00

35 lines
525 B
Perl

#!/usr/local/perl
# $HopeName: MMQA_harness!script:display(trunk.1) $
#
# provide a subroutine to pretty-print tests to a
# output stream
#
1;
sub display_test_source {
local ($file, $stream, $width) = @_;
unless (open(IN, $file)) {
die "File ".$infile." unexpectedly not found.\n";
}
$l = "";
while (<IN>) {
print $stream $_;
}
close(IN);
}
#
# Ideas:
#
# line properties: join at start / join at end?
# specials:
# start paragraph
# special formatting (alignment?)
# lists, itemised, tables &c
#
#