summaryrefslogtreecommitdiffstats
path: root/regress/usr.bin/mandoc/mdoc/Bd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* In HTML output, correctly render .Bd -unfilled in proportionally-spacedschwarze2021-03-301-1/+1
| | | | | | | | | | | font, rather than with the monospace font appropriate for .Bd -literal. This fixes a minibug reported by anton@. Implemented by no longer relying on the typical browser default of "pre { font-family: monospace }" but instead letting <pre> elements inherit the font family from their parent, then adding an explicit CSS .Li class only for those displays where the manual page author requested it by using the -literal option on the .Bd macro.
* In HTML output, avoid printing a newline right after <pre>schwarze2020-10-162-16/+8
| | | | | | | | 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-213-17/+17
| | | | after getting rid of the "copyless" crutch
* In fragment identifiers, use ~%d for ordinal suffixes,schwarze2020-04-201-2/+2
| | | | | | | | | 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 '~'.
* When .Bd, .D1, or .Dl is tagged, attach the permalinkschwarze2020-04-1912-35/+78
| | | | to the first few letters, similar to what was earlier done for .Pp.
* When a .Tg is attached to a paragraph, attach the permalinkschwarze2020-04-181-3/+5
| | | | to the first word, or the first few words if they are short.
* Support manual tagging of .Pp, .Bd, .D1, .Dl, .Bl, and .It.schwarze2020-04-0611-16/+39
| | | | | | In HTML output, improve the logic for writing inside permalinks: skip them when there is no child content or when there is a risk that the children might contain flow content.
* Introduce the concept of nodes that are semantically transparent:schwarze2020-02-273-4/+20
| | | | | | | | | | | | | | 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-032-5/+1
|
* Represent mdoc(7) .Pp (and .sp, and some SYNOPSIS and .Rs features)schwarze2019-01-079-8/+165
| | | | | | | | | | | | | | | | | | | by the <p> HTML element and use the html_fillmode() mechanism for .Bd -unfilled, just like it was done for man(7) earlier, finally getting rid both of the horrible <div class="Pp"></div> hack and of the worst HTML syntax violations caused by nested displays. Care is needed because in some situations, paragraphs have to remain open across several subsequent macros, whereas in other situations, they must get closed together with a block containing them. Some implementation details include: * Always close paragraphs before emitting HTML flow content. * Let html_close_paragraph() also close <pre> for extra safety. * Drop the old, now unused function print_paragraph(). * Minor adjustments in the top-level man(7) node formatter for symmetry. * Bugfix: .Ss heads suspend no-fill mode, even though .Ss doesn't end it. * Bugfix: give up on .Op semantic markup for now, see the comment.
* fix the dates that got broken by cvs commitschwarze2019-01-044-4/+4
|
* Test interaction of low-level roff(7) filling requests with .Bd in generalschwarze2019-01-047-13/+98
| | | | and filling in .Bd -centered in particular; related to mdoc_term.c rev. 1.271.
* Now that we have the -Wstyle message level, downgrade six warningsschwarze2017-07-061-7/+7
| | | | | | that are not syntax mistakes and that do not cause wrong formatting or content to style suggestions. Also upgrade two warnings that may cause information loss to errors.
* Messages of the -Wbase level now print STYLE:. Since thisschwarze2017-07-0443-95/+86
| | | | | | | | 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-257-14/+21
|
* churn related to the new style message about RCS idsschwarze2017-06-177-0/+7
|
* improve rounding rules for scaling unitsschwarze2017-06-141-2/+2
| | | | in horizontal orientation in the terminal formatter
* churn caused by the new Mdocdate messages, no easy way to avoid this :(schwarze2017-06-117-0/+7
|
* Now that markdown output is tested for almost everything, test allschwarze2017-03-081-5/+1
| | | | | | input files in -T markdown output mode by default and only mark those files with SKIP_MARKDOWN that are not to be tested. Much easier to read, and almost minus 40 lines of Makefile code.
* enable -T markdown tests of filled displays and tagged listsschwarze2017-03-0813-1/+301
|
* If a .Bd block has no arguments at all, drop the block and only keepschwarze2015-10-303-4/+11
| | | | | its contents. Removing a gratuitious difference to groff output found after a related bug report from krw@.
* Delete the legacy generic warning type MANDOCERR_ARGCWARN,schwarze2015-02-061-1/+1
| | | | | replacing the last instances by more specific warnings. Improved functionality, minus 50 lines of code.
* better handle empty .Bd .Bl .D1 .Dl blocksschwarze2015-02-061-1/+1
|
* Discard excess head arguments for .Bd .Bl .Bk and delete hwarn_eq0().schwarze2015-02-042-1/+2
| | | | | Discard empty .Bk blocks. Improve related diagnostics.
* fix column numbers of macro arguments in messagesschwarze2015-02-041-3/+3
|
* Simplify: Do not call rew_dohalt() from make_pending(),schwarze2015-02-022-2/+2
| | | | | the calling macro handler already found the breaking block. No functional change except tiny variations in error messages.
* Support negative indentations for mdoc(7) displays and lists.schwarze2014-12-243-4/+50
| | | | | | Not exactly recommended for use, rather for groff compatibility. While here, introduce similar SHRT_MAX limits as in man(7), fixing a few cases of infinite output found by jsg@ with afl.
* Downgrade .Bd -file from FATAL to ERROR.schwarze2014-11-273-0/+27
| | | | | Since this was the last remaining FATAL error in this area, this change will allow major simplifications in the mdoc(7) parser.
* We repeatedly observed assertion crashes in the low-level terminalschwarze2014-11-212-2/+7
| | | | | | | | | | | | | | | | | | | | | output handler because the high level terminal formatters could be tricked into setting the left margin further to the right than the right margin. Today, jsg@ found more of these with afl. Change the internal interface between both levels, aiming for simplicity and robustness of the code. Treat both margins as *independent* settings: Now, termp.offset is the requested left margin, and termp.rmargin is the available space. Let the lower level cope with that case of insufficient space. Obviously, high level code that does centering or flush right still has to do careful checks, so i did a full audit of margin settings in the terminal formatters. Fixes crashes caused by excessively long title or date strings in the man(7) footer, operating system or date strings in the mdoc(7) footer, volume strings in the man(7) or mdoc(7) header, and a few cases related to some non-prologue macros.
* add required vertical spacing before lists that beginschwarze2014-11-101-1/+0
| | | | | | at the beginning of the first item of an enclosing list right at the beginning of a new section or subsection; minibug reported by Steffen Nurpmeso <sdaoden at yandex dot com>
* more tests found in my treeschwarze2014-11-104-4/+38
|
* Major bugsquashing with respect to -offset and -width:schwarze2014-10-302-2/+7
| | | | | | | | | 1. Support specifying the .Bd and .Bl -offset as a macro default width; while here, simplify the code handling the same for .Bl -width. 2. Correct handling of .Bl -offset arguments: unlike .Bd -offset, the arguments "left", "indent", and "indent-two" have no special meaning. 3. Fix the scaling of string length -offset and -width arguments in -Thtml. Triggered by an incomplete documentation patch from bentley@.
* inevitable churn caused by the section title changeschwarze2014-08-2610-10/+10
|
* new regression tests collected during recent workschwarze2014-08-143-3/+37
|
* start catching up with recent code changes, but no new files yetschwarze2014-08-111-3/+3
|
* Clean up ERROR messages related to document structure and macros:schwarze2014-07-074-4/+26
| | | | Hierarchical naming and mention macro names in messages.
* Clean up messages related to plain text and to escape sequences.schwarze2014-07-062-2/+10
| | | | | * Mention invalid escape sequences and string names, and fallbacks. * Hierarchical naming.
* Cleanup with respect to bad macro arguments.schwarze2014-07-057-35/+32
| | | | | | | | * Fix .Sm with invalid arg: move arg out and toggle mode. * Promote "unknown standard" from WARNING to ERROR, it loses information. * Delete MANDOCERR_BADWIDTH, it would only indicate a mandoc(1) bug. * Do not report MANDOCERR_BL_LATETYPE when there is no type at all. * Mention macro names, arguments and fallbacks.
* Cleanup regarding -offset and -width:schwarze2014-07-054-3/+37
| | | | | | | * Bugfix: Last one wins, not first one. * Fix .Bl -width without argument: it means 0n, so do not ignore it. * Report macro names, argument names and fallbacks in related messages. * Simplify: Garbage collect auxiliary variables in pre_bd() and pre_bl().
* Clean up messages regarding excess arguments:schwarze2014-07-042-1/+2
| | | | | | | * Downgrade ".Bf -emphasis Em" from FATAL to WARNING. * Mention the macros, the arguments, and the fallbacks. * Hierarchical naming. Also fix the handling of excess .It head arguments in -Tman.
* Clean up messages related to missing arguments.schwarze2014-07-044-3/+32
| | | | | | | | | * Do not warn about empty -column cells, they seem valid to me. * Downgrade empty item and missing -std from ERROR to WARNING. * Hierarchical naming. * Descriptive, not imperative style. * Mention macro names, argument names, and fallbacks. * Garbage collect some unreachable code in post_it().
* Clean up warnings related to macros and nesting.schwarze2014-07-024-1/+6
| | | | | | | * Hierarchical naming of enum mandocerr items. * Improve the wording to make it comprehensible. * Mention the offending macro. * Garbage collect one chunk of ancient, long unreachable code.
* Improve formatting of broken blocks in -Tman,schwarze2014-01-241-4/+2
| | | | somewhat similar to what mdoc_term.c already does for -Tascii.
* Correct indentation for lists and displays inside lists.schwarze2012-11-183-2/+73
| | | | | | | Inspired by a diff from millert@, but implemented rather differently and with slightly better functionality. In particular, this one respects -offset and -width arguments found in the input file.
* Fix a crash triggered by .Bl -tag .It Xo .El .Sh found by florian@.schwarze2012-11-165-2/+61
| | | | | | | | | | | * When allocating a body end marker, copy the pointer to the normalized block information from the body block, avoiding the risk of subsequent null pointer derefence. * When inserting the body end marker into the syntax tree, do not try to copy that pointer from the parent block, because not being a direkt child of the block it belongs to is the whole point of a body end marker. * Even non-callable blocks (like Bd and Bl) can break other blocks; when this happens, postpone closing them out in the usual way.
* after several improvements to -Tman went in,schwarze2012-07-075-7/+31
| | | | enable lots of related regression tests
* test vertical spacing around display blocksschwarze2011-12-013-3/+27
|
* Complete overhaul of the mandoc(1) test suite.schwarze2011-11-177-5/+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
* some more tests regarding empty macrosschwarze2011-01-043-3/+39
|
* more tests of white space handlingschwarze2011-01-022-1/+14
|