Could it be that in the session LF is enough and M$ wants CRLF? 2010/2/2 Philip A. Viton <[email protected]>: > > Is there some trick to getting newlines to print correctly > using sprintf? Here's an example: > > load 'print sprintf' > mz =. (<"0 i. 2 3) ; < <"0 i. 4 5 > tt =. '\nTest\n%j\naAnother test\n%j\n' sprintf mz > print tt > > If I display tt in my J session, it looks fine, > but when I send it to a printer, none of the linefeeds > has any effect. I've tried this with two separate > printers (under MS windows). Any ideas or insight as > to what I'm doing wrong? > > ------------------------ > Philip A. Viton > City Planning, Ohio State University > 275 West Woodruff Avenue, Columbus OH 43210 > [email protected] > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm >
-- Björn Helgason, Verkfræðingur Fornustekkum II 781 Hornafirði Po Box 127,801 Selfoss , t-póst: [email protected] gsm: +3546985532 sími: +3544781286 http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) ♖♘♗♕♔♙ `. )----' (")_(") ☃☠ ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
