From owner-freebsd-questions@FreeBSD.ORG Sat Apr 11 19:36:36 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C96DA106568B for ; Sat, 11 Apr 2009 19:36:34 +0000 (UTC) (envelope-from bmettee@pchotshots.com) Received: from mail.pchotshots.com (ns1.pchotshots.com [12.172.123.235]) by mx1.freebsd.org (Postfix) with ESMTP id 074148FC45 for ; Sat, 11 Apr 2009 19:36:33 +0000 (UTC) (envelope-from bmettee@pchotshots.com) Received: (qmail 82469 invoked by uid 89); 11 Apr 2009 19:12:40 -0000 Received: from unknown (HELO dev2.pchotshots.com) (12.172.123.228) by mail.pchotshots.com with SMTP; 11 Apr 2009 19:12:40 -0000 Message-Id: <4.3.2.7.2.20090411150921.02e611b8@mail.pchotshots.com> X-Sender: bmettee@pchotshots.com@mail.pchotshots.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Sat, 11 Apr 2009 15:09:53 -0400 To: FreeBSD Questions From: Brad Mettee Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: /usr/bin/calendar in cgi script X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Apr 2009 19:36:47 -0000 You'll need to put it in a "
 
" html block to preserve the formatting. Or you can try to substitute the '\n' into '
' somehow (been a while since I did search/replace in an include so I can't be more specific). At 03:02 PM 4/11/2009, you wrote: >Hi, >I have a cgi script on my website that runs: > >/usr/bin/calendar -f /usr/share/calendar/calendar.history > >Now, when I run that script in a terminal, the output is perfectly >formatted, multiple lines (if there are multiple events on this date), >date first, event, year. Just right. > >But, when I put that in an "include" statement in a webpage, the >output is a single line, regardless of whether there are multiple >events. >You can see a bad example here: > > > >How can I make multiple events show on separate lines, like it does in >terminal? > > >-- >Thanks, >Charles > >Reasons it's great to be a guy... >You get to think about sex 90% of your waking hours. > > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"