Up to [cvsweb.bsd.lv] / mandoc
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.21 / (download) - annotate - [select for diffs], Mon Jun 22 19:20:40 2020 UTC (4 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6,
HEAD
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (unified) to selected 1.17 (unified)
Because mandoc_aux.h and mandoc.h use __attribute__, all files that include mandoc_aux.h or mandoc.h need to include config.h, too. It is suspected that for example IRIX needs this, or it is likely to throw errors in these files because the system compiler doesn't understand __attribute__. Issue reported by Kazuo Kuroi <kazuo at irixnet dot org>.
Revision 1.20 / (download) - annotate - [select for diffs], Tue Apr 30 15:53:01 2019 UTC (5 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (unified) to selected 1.17 (unified)
In HTML output, allow switching the desired font for subsequent text without printing an opening tag right away, and use that in the .ft request handler. While here, garbage collect redundant enum htmlfont and reduce code duplication in print_text(). Fixing an assertion failure reported by Michael <Stapelberg at Debian> in pmRegisterDerived(3) from libpcp3-dev.
Revision 1.19 / (download) - annotate - [select for diffs], Mon Jan 7 07:26:29 2019 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (unified) to selected 1.17 (unified)
Represent mdoc(7) .Pp (and .sp, and some SYNOPSIS and .Rs features) 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.
Revision 1.18 / (download) - annotate - [select for diffs], Sun Jan 6 04:55:09 2019 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.17: +8 -2 lines
Diff to previous 1.17 (unified)
Finally, represent the man(7) .PP and .HP macros by the natural choice, which is the <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.
Revision 1.17 / (download) - annotate - [selected], Sat Jan 5 09:14:44 2019 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.16: +20 -4 lines
Diff to previous 1.16 (unified)
Now that the NODE_NOFILL flag in the syntax tree is accurate, use it in the man(7) HTML formatter rather than keeping fill mode state locally, resulting in massive simplification (minus 40 LOC). Move the html_fillmode() state handler function to the html.c module such that both the man(7) and the roff(7) formatter (and in the future, also the mdoc(7) formatter) can use it. Give it a query mode, to be invoked with TOKEN_NONE.
Revision 1.16 / (download) - annotate - [select for diffs], Mon Dec 31 07:08:12 2018 UTC (5 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.15: +3 -1 lines
Diff to previous 1.15 (unified) to selected 1.17 (unified)
Move parsing of the .nf and .fi (fill mode) requests from the man(7) parser to the roff(7) parser. As a side effect, .nf and .fi are now also parsed in mdoc(7) input, though the mdoc(7) formatters still ignore most of their effect.
Revision 1.15 / (download) - annotate - [select for diffs], Sun Dec 16 00:17:02 2018 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.14: +15 -3 lines
Diff to previous 1.14 (unified) to selected 1.17 (unified)
Yet another round of improvements to manual font selection. Unify handling of \f and .ft. Support \f4 (bold+italic). Support ".ft BI" and ".ft CW" for terminal output. Support the .ft request in HTML output. Reject the bogus fonts \f(C1, \f(C2, \f(C3, and \f(CP. In regress.pl, only strip leading whitespace in math mode.
Revision 1.14 / (download) - annotate - [select for diffs], Thu Dec 13 11:55:47 2018 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (unified) to selected 1.17 (unified)
Cleanup, no functional change: Split the top level parser interface out of the utility header mandoc.h, into a new header mandoc_parse.h, for use in the main program and in the main parser only. Move enum mandoc_os into roff.h because struct roff_man is the place where it is stored. This allows removal of mandoc.h from seven files in low-level parsers and in formatters.
Revision 1.13 / (download) - annotate - [select for diffs], Mon Dec 3 16:18:02 2018 UTC (5 years, 9 months ago) by schwarze
Branch: MAIN
Changes since 1.12: +2 -6 lines
Diff to previous 1.12 (unified) to selected 1.17 (unified)
Render .br as <br/>, not as an empty <div>. The element <br/> was already employed for many other purposes, so there is nothing wrong with using it. Also, it is safer because <br/> is permitted in phrasing content, whereas <div> is only allowed in flow content. This is the first part of the HTML syntax audit which i wanted to do for a long time. Reminded by a loosely related bug report from Mark Harris <mark dot hsj at gmail dot com>. Examples of where this caused HTML nesting syntax errors: * in man(7) code between .nf and .fi * in mdoc(7) code between .Bd -unfilled and .Ed * in mdoc(7) code between .Ql Xo and .Xc * in mdoc(7) code between .Rs and .Re
Revision 1.12 / (download) - annotate - [select for diffs], Mon Jun 25 14:53:58 2018 UTC (6 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4
Changes since 1.11: +3 -13 lines
Diff to previous 1.11 (unified) to selected 1.17 (unified)
Get rid of the last explicit length in HTML style= attributes. Even though style=height is not particularly harmful for responsive design except for very large arguments which don't really occur in practice, it is not useful either: nobody should use .sp in manual pages, in particular not with an argument. Even if somebody does, ignoring the argument will likely make the output look better rather than worse. Consequently, simplify by dropping a useless feature.
Revision 1.11 / (download) - annotate - [select for diffs], Sat Jun 24 14:38:33 2017 UTC (7 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_3,
VERSION_1_14_2
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (unified) to selected 1.17 (unified)
Split -Wstyle into -Wstyle and the even lower -Wbase, and add -Wopenbsd and -Wnetbsd to check conventions for the base system of a specific operating system. Mark operating system specific messages with "(OpenBSD)" at the end. Please use just "-Tlint" to check base system manuals (defaulting to -Wall, which is now -Wbase), but prefer "-Tlint -Wstyle" for the manuals of portable software projects you maintain that are not part of OpenBSD base, to avoid bogus recommendations about base system conventions that do not apply. Issue originally reported by semarie@, solution using an idea from tedu@, discussed with jmc@ and jca@.
Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 14 22:51:25 2017 UTC (7 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (unified) to selected 1.17 (unified)
Naive implementation of the roff(7) .po (page offset) request. This clearly works when .po is called on the top level, but might not be sophisticated enough if people call .po inside indentation-changing contexts, but i haven't seen that in manual pages (yet :).
Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 14 13:00:31 2017 UTC (7 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (unified) to selected 1.17 (unified)
implement roff(7) .rj (right justify) request
Revision 1.8 / (download) - annotate - [select for diffs], Thu Jun 8 12:54:58 2017 UTC (7 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (unified) to selected 1.17 (unified)
make the internal a2roffsu() interface more powerful by returning a pointer to the end of the parsed data, making it easier to parse subsequent bytes
Revision 1.7 / (download) - annotate - [select for diffs], Tue Jun 6 15:01:04 2017 UTC (7 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.6: +21 -2 lines
Diff to previous 1.6 (unified) to selected 1.17 (unified)
Minimal implementation of the roff(7) .ce request (center a number of input lines without filling). Contrary to groff, high-level macros abort .ce mode for now.
Revision 1.6 / (download) - annotate - [select for diffs], Sun Jun 4 22:44:15 2017 UTC (7 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (unified) to selected 1.17 (unified)
Implement the roff(7) .mc (right margin character) request. The Tcl/Tk manual pages use this extensively. Delete the TERM_MAXMARGIN hack, it breaks .mc inside .nf; instead, implement a proper TERMP_BRNEVER flag.
Revision 1.5 / (download) - annotate - [select for diffs], Mon May 8 15:34:54 2017 UTC (7 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.4: +1 -0 lines
Diff to previous 1.4 (unified) to selected 1.17 (unified)
Basic implementation of the roff(7) .ti (temporary indent) request. Needed by about four dozen ports (thanks to naddy@ for the research).
Revision 1.4 / (download) - annotate - [select for diffs], Sun May 7 17:31:45 2017 UTC (7 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.3: +1 -0 lines
Diff to previous 1.3 (unified) to selected 1.17 (unified)
Basic implementation of the roff(7) .ta (define tab stops) request. This is the first feature made possible by the parser reorganization. Improves the formatting of the SYNOPSIS in many Xenocara GL manuals. Also important for ports, as reported by many, including naddy@.
Revision 1.3 / (download) - annotate - [select for diffs], Fri May 5 15:17:32 2017 UTC (7 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.2: +21 -1 lines
Diff to previous 1.2 (unified) to selected 1.17 (unified)
Move .sp to the roff modules. Enough infrastructure is in place now that this actually saves code: -70 LOC.
Revision 1.2 / (download) - annotate - [select for diffs], Fri May 5 02:06:19 2017 UTC (7 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (unified) to selected 1.17 (unified)
Move handling of the roff(7) .ft request from the man(7) modules to the new roff(7) modules. As a side effect, mdoc(7) now handles .ft, too. Of course, do not use that.
Revision 1.1 / (download) - annotate - [select for diffs], Thu May 4 22:16:09 2017 UTC (7 years, 4 months ago) by schwarze
Branch: MAIN
Diff to selected 1.17 (unified)
Start roff formatter modules for HTML and termininal output, used by both the mdoc and man formatters, with the ultimate goal of reducing code duplication between the two macro formatters. Made possible by the parser unification. Add the first formatting function (for the .br request).