summaryrefslogtreecommitdiffstats
path: root/regress/usr.bin/mandoc/man/IP (follow)
Commit message (Collapse)AuthorAgeFilesLines
* In HTML output, avoid printing a newline right after <pre>schwarze2020-10-161-28/+14
| | | | | | | | and right before </pre> because that resulted in vertical whitespace not requested by the manual page author. Formatting bug reported by Aman Verma <amanraoverma plus vim at gmail dot com> on discuss@.
* trivial adjustment of the desired test resultsschwarze2020-07-212-9/+9
| | | | after getting rid of the "copyless" crutch
* In fragment identifiers, use ~%d for ordinal suffixes,schwarze2020-04-201-3/+3
| | | | | | | | | and reserve the character '~' for that purpose. Bug found by validator.w3.org in openssl(1), which contains both a tag "tls1_2" and a second instance of a tag "tls1", which also resulted in "tls1_2", causing a clash. Now, the second instance of "tls1" is rendered as "tls1~2" instead, employing the newly reserved '~'.
* automatically tag .SH and .SS in man(7) terminal outputschwarze2020-04-042-0/+4
| | | | in the same way as it was done for .Sh and .Ss in mdoc(7)
* Split tagging into a validation part including prioritizationschwarze2020-03-1311-12/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in tag.{h,c} and {mdoc,man}_validate.c and into a formatting part including command line argument checking in term_tag.{h,c}, html.c, and {mdoc|man}_{term|html}.c. Immediate functional benefits include: * Improved prioritization of automatic tags for .Em and .Sy. * Avoiding bogus automatic tags when .Em, .Fn, or .Sy are explicitly tagged. * Explicit tagging of .Er and .Fl now works in HTML output. * Automatic tagging of .IP and .TP now works in HTML output. But mainly, this patch provides clean earth to build further improvements on. Technical changes: * Main program: Write a tag file for ASCII and UTF-8 output only. * All formatters: There is no more need to delay writing the tags. * mdoc(7)+man(7) formatters: No more need for elaborate syntax tree inspection. * HTML formatter: If available, use the "string" attribute as the tag. * HTML formatter: New function to write permalinks, to reduce code duplication. Style cleanup in the vicinity while here: * mdoc(7) terminal formatter: To set up bold font for children, defer to termp_bold_pre() rather than calling term_fontpush() manually. * mdoc(7) terminal formatter: Garbage collect some duplicate functions. * mdoc(7) HTML formatter: Unify <code> handling, delete redundant functions. * Where possible, use switch statements rather than if cascades. * Get rid of some more Yoda notation. The necessity for such changes was first discussed with kn@, but i didn't bother him with a request to review the resulting -673/+782 line patch.
* Introduce the concept of nodes that are semantically transparent:schwarze2020-02-277-3/+120
| | | | | | | | | | | | | | they are skipped when looking for previous or following high-level macros. Examples include roff(7) .ft, .ll, and .ta, mdoc(7) .Sm and .Tg, and man(7) .DT and .PD. Use this concept for a variety of improved decisions in various validators and formatters. While here, * remove a few const qualifiers on struct arguments that caused trouble; * get rid of some more Yoda notation in the vicinity; * and apply some other stylistic improvements in the vicinity. I found this class of issues while considering .Tg patches from kn@.
* adapt to new <p> output logic (html.c rev. 1.131)schwarze2019-09-031-4/+2
|
* Wrap .Sh/.SH sections and .Ss/.SS subsections in HTML <section> elementsschwarze2019-03-011-0/+3
| | | | | | as recommended for accessibility by the HTML 5 standard. Triggered by a similar, but slightly different suggestion from Laura Morales <lauretas at mail dot com>.
* Remove the HTML title= attributes which harmed accessibility andschwarze2019-01-111-2/+2
| | | | | | | violated the principle of separation of content and presentation. Instead, implement the tooltips purely in CSS. Thanks to John Gardner <gardnerjohng at gmail dot com> for suggesting most of the styling in the new ::before rules.
* Finally, represent the man(7) .PP and .HP macros by the naturalschwarze2019-01-064-7/+79
| | | | | | | | | | | choice, which is <p> HTML element. On top of the previous fill-mode improvements, the key to making this possible is to automatically close the <p> when required: before headers, subsequent paragraphs, lists, indented blocks, synopsis blocks, tbl(7) blocks, and before blocks using no-fill mode. In man(7) documents, represent the .sp request by a blank line in no-fill mode and in the same way as .PP in fill mode.
* Messages of the -Wbase level now print STYLE:. Since thisschwarze2017-07-047-9/+14
| | | | | | | | causes horrible churn anyway, profit of the opportunity to stop excessive testing, such that this is hopefully the last instance of such churn. Consistently use OpenBSD RCS tags, blank .Os, blank fourth .TH argument, and Mdocdate like everywhere else. Use -Ios=OpenBSD for platform-independent predictable output.
* cope with changes in BASE messagesschwarze2017-06-251-1/+1
|
* churn related to the new style message about RCS idsschwarze2017-06-171-0/+1
|
* improve rounding rules for scaling unitsschwarze2017-06-141-2/+2
| | | | in horizontal orientation in the terminal formatter
* more tests for .IP/.nf interaction that i forgot to commitschwarze2017-02-172-2/+69
|
* Trailing whitespace is significant when determining the width of a tagschwarze2015-09-212-2/+26
| | | | | in mdoc(7) .Bl -tag and man(7) .TP, but not in man(7) .IP. Quirk reported by Jan Stary <hans at stare dot cz> on ports@.
* support negative horizontal widths in man(7);schwarze2014-12-232-0/+45
| | | | minus twenty lines of code in spite of enhanced functionality
* even if the second argument to .IP is invalid, don't print itschwarze2014-12-232-2/+15
|
* inevitable churn caused by the section title changeschwarze2014-08-266-6/+6
|
* Improve "skipping paragraph macro" messages,schwarze2014-07-022-1/+4
| | | | showing which macro was skipped and before or after what.
* Add a new term_flushln() flag TERMP_BRIND (if break, then indent)schwarze2014-04-083-2/+31
| | | | | | | | | | to control indentation of continuation lines in TERMP_NOBREAK mode. In the past, this was always on; continue using it for .Bl, .Nm, .Fn, .Fo, and .HP, but no longer for .IP and .TP. I looked at this because sthen@ reported the issue in a manual of a Perl module from ports, but it affects base, too: This patch reduces groff-mandoc differences in base by more than 15%.
* when indenting, extend the right margin accordingly, when needed;schwarze2014-02-162-2/+15
| | | | fixes a crash reported by blambert@ and a few other, similar ones
* Drop empty .IP such that is does not cause additional vertical spacing.schwarze2012-07-183-2/+54
| | | | Issue first reported by naddy@ in rsync(1).
* After unifying volume titles in the page headers for man(7) and mdoc(7),schwarze2011-12-024-4/+4
| | | | | adjust the expected man(7) output to the new convention. Related to src/usr.bin/mandoc/man_validate.c rev. 1.51.
* Complete overhaul of the mandoc(1) test suite.schwarze2011-11-179-6/+9
| | | | | | | | | | | | | | | * Test the recently introduced -Tman output mode, too. * Specify date and OS arguments in all tests. * Remove the kludge of sed(1)ing away the page footer lines. * New make(1) variables SKIP_TMAN, SKIP_GROFF. * Drop obsolete, clumsy make(1) variable GROFF_TARGETS. * Delete obsolete mdoc/Bl/E*.sh error reporting tests. * Silence char/N/basic. * New targets: - ascii, ascii-clean - to run -Tascii tests only - tman, tman-clean - to run the new -Tman tests only - obj-clean - maintainer only, needed before groff-clean and groff - groff-clean - maintainer only, affects checked-in files
* another test found in my treeschwarze2011-02-053-3/+50
|
* Fix stupid commit error pointed out by guenther@ (thanks!):schwarze2011-01-042-3/+3
| | | | | | | | | | 1) Actually commit TP/* this time. 2) Revert IP/* to 1.1, which is the correct version. What happened is that i committed both IP/* and TP/* into IP, committing two versions in one commit, because the file TP/CVS/Repository was corrupt in my tree. I didn't even know that could happen...
* Multiple man(7) .IP and .TP fixes started during p2k10:schwarze2011-01-047-0/+226
Affecting both -Tascii and -Thtml: * The .IP HEAD uses the second argument as the width, not the last one. * Only print the first .IP HEAD argument, not all but the last. Affecting only -Tascii: * The .IP and .TP HEADs must be printed without literal mode, but literal mode must be restored afterwards. * After the .IP and .TP bodies, we only want term_newln(), not term_flushln(), or we would get two blank lines in literal mode. * The .TP HEAD does not use TWOSPACE, just like .IP doesn't either. * In literal mode, clear NOLPAD after each line, or subsequent lines would get no indentation whatsoever. Affecting only -Thtml: * Only print next-line .TP children, instead of all but the first. OK kristaps@ on the -Tascii part; and: "Can you work this into man_html.c, too?"