From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: from mandoc.bsd.lv (bsd.lv [66.111.2.12]) by inbox.vuxu.org (Postfix) with ESMTP id 4DC1B21259 for ; Sat, 21 Sep 2024 14:00:29 +0200 (CEST) Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 1a25ab0c for ; Sat, 21 Sep 2024 12:00:29 +0000 (UTC) Received: from localhost (mandoc.bsd.lv [local]) by mandoc.bsd.lv (OpenSMTPD) with ESMTPA id 03d36706 for ; Sat, 21 Sep 2024 12:00:28 +0000 (UTC) Date: Sat, 21 Sep 2024 12:00:28 +0000 (UTC) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: Check that .In is callable and parsed. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: <94fe37e7df1977a7@mandoc.bsd.lv> Log Message: ----------- Check that .In is callable and parsed. Triggered by a documentation patch from Evan Silberman . I'm not testing yet whether the same applies in the SYNOPSIS section because there are multiple parsing and formatting differences with groff in that section. Modified Files: -------------- mandoc/regress/mdoc/In: Makefile Added Files: ----------- mandoc/regress/mdoc/In: parse.in parse.out_ascii parse.out_markdown Revision Data ------------- Index: Makefile =================================================================== RCS file: /home/cvs/mandoc/mandoc/regress/mdoc/In/Makefile,v diff -Lregress/mdoc/In/Makefile -Lregress/mdoc/In/Makefile -u -p -r1.4 -r1.5 --- regress/mdoc/In/Makefile +++ regress/mdoc/In/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.6 2015/02/06 01:07:07 schwarze Exp $ +# $OpenBSD: Makefile,v 1.10 2024/09/21 11:56:36 schwarze Exp $ -REGRESS_TARGETS = break eos font noarg +REGRESS_TARGETS = break eos font noarg parse LINT_TARGETS = noarg .include --- /dev/null +++ regress/mdoc/In/parse.out_ascii @@ -0,0 +1,9 @@ +IN-PARSE(2) System Calls Manual IN-PARSE(2) + +NNAAMMEE + IInn--ppaarrssee - parsing of include file macros + +DDEESSCCRRIIPPTTIIOONN + first line ppaarreenntt <_a_r_g_1> arg2 cchhiilldd middle line (<_a_r_g>) last line + +OpenBSD September 21, 2024 OpenBSD --- /dev/null +++ regress/mdoc/In/parse.in @@ -0,0 +1,13 @@ +.\" $OpenBSD: parse.in,v 1.1 2024/09/21 11:56:36 schwarze Exp $ +.Dd $Mdocdate: September 21 2024 $ +.Dt IN-PARSE 2 +.Os +.Sh NAME +.Nm In-parse +.Nd parsing of include file macros +.Sh DESCRIPTION +first line +.Sy parent In arg1 arg2 Sy child +middle line +.In ( arg ) +last line --- /dev/null +++ regress/mdoc/In/parse.out_markdown @@ -0,0 +1,15 @@ +IN-PARSE(2) - System Calls Manual + +# NAME + +**In-parse** - parsing of include file macros + +# DESCRIPTION + +first line +**parent** <*arg1*> arg2 **child** +middle line +(<*arg*>) +last line + +OpenBSD - September 21, 2024 -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv