From owner-freebsd-questions@FreeBSD.ORG Sat Apr 11 20:01:08 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 CDA171065672 for ; Sat, 11 Apr 2009 20:01:08 +0000 (UTC) (envelope-from chowse@charter.net) Received: from mta21.charter.net (mta21.charter.net [216.33.127.81]) by mx1.freebsd.org (Postfix) with ESMTP id 64FCB8FC22 for ; Sat, 11 Apr 2009 20:01:08 +0000 (UTC) (envelope-from chowse@charter.net) Received: from imp11 ([10.20.200.11]) by mta21.charter.net (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20090411200108.UPDH3344.mta21.charter.net@imp11> for ; Sat, 11 Apr 2009 16:01:08 -0400 Received: from larry.local ([24.176.103.31]) by imp11 with charter.net id eL171b0080gfJ3405L17ix; Sat, 11 Apr 2009 16:01:08 -0400 Message-Id: <845EB734-909E-4B97-9ABD-8ABBADFA291B@charter.net> From: Charles Howse To: FreeBSD Questions In-Reply-To: <18912.60033.242203.912434@jerusalem.litteratus.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Sat, 11 Apr 2009 15:01:07 -0500 References: <251E39DC-2EEE-4E43-9B4C-3F273B19AD09@charter.net> <18912.60033.242203.912434@jerusalem.litteratus.org> X-Mailer: Apple Mail (2.930.3) 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 20:01:09 -0000 On Apr 11, 2009, at 2:07 PM, Robert Huff wrote: > > Charles Howse writes: > >> 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? > > Would I be correct in believing you're unfamiliar with html? You would most certainly NOT BE CORRECT. I've had my own server running Apache for years. I don't think this is something that can be solved with html tags, but I will try Brad's suggestions. Read man calendar about how it uses cpp, and how the calendar.* files are formatted. If I recall, I used this same technique years ago and had a simple, elegant way of solving it using some default tool like col, though that doesn't seem to work now.