From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from acme.spoerlein.net (acme.spoerlein.net [188.72.220.29]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o51AAZGt030753 for ; Tue, 1 Jun 2010 06:10:37 -0400 (EDT) Received: from acme.spoerlein.net (localhost.spoerlein.net [IPv6:::1]) by acme.spoerlein.net (8.14.4/8.14.4) with ESMTP id o51AAXrs001683 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 1 Jun 2010 12:10:34 +0200 (CEST) (envelope-from uqs@spoerlein.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=spoerlein.net; s=dkim200908; t=1275387034; bh=sTDEE4u/gQzYvUEQbW173bLMweqm2hE9pcvmhHBnXfo=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=n6xtsqwWcdUIlpH0xa3NKfOgOUgh6tMqF8Elj6WHIwWM2qOJJZ04OwYanKtuBqvwI hbUPDcDzH0L+zrdiNM4kLQshfheOfAYBBcAwVjEXB8B6Vygy12n+LYN5gBTfzkMa+c UXyRtVKtJdyj9fNrLv/bjqnlnNuDLOBToat8ywC0= Received: (from uqs@localhost) by acme.spoerlein.net (8.14.4/8.14.4/Submit) id o51AAXqM001682 for tech@mdocml.bsd.lv; Tue, 1 Jun 2010 12:10:33 +0200 (CEST) (envelope-from uqs@spoerlein.net) Date: Tue, 1 Jun 2010 12:10:33 +0200 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: tech@mdocml.bsd.lv Subject: roff conditionals inside .Bd Message-ID: <20100601101033.GE91631@acme.spoerlein.net> X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Hi guys, the .if n/t support is really nice, but I have one mdoc page that still barfs, as the .if is used inside .Bd. Markup looks like this: The .Fn erf and the .Fn erff functions calculate the error function of x; where .Bd -ragged -offset indent .if n \{\ erf(x) = 2/sqrt(pi)\(**\|integral from 0 to x of exp(\-t\(**t) dt. \} .if t \{\ erf\|(x) := (2/\(sr\(*p)\|\(is\d\s8\z0\s10\u\u\s8x\s10\d\|exp(\-t\u\s82\s10\d)\|dt. \} .Ed .Pp % mandoc lib/msun/man/erf.3 lib/msun/man/erf.3:61:2: scope broken, syntax violated mandoc will render it just fine, if - the .Bd/.Ed is removed - the conditional is removed (duh) - the conditional is put on one line, like this: .Bd -ragged -offset indent .if n erf(x) = 2/sqrt(pi)\(**\|integral from 0 to x of exp(\-t\(**t) dt. .if t erf\|(x) := (2/\(sr\(*p)\|\(is\d\s8\z0\s10\u\u\s8x\s10\d\|exp(\-t\u\s82\s10\d)\|dt. .Ed Ideas? Uli -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv