[BACK]Return to mandoc.1 CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/mandoc.1, Revision 1.97

1.97    ! schwarze    1: .\"    $Id: mandoc.1,v 1.96 2011/10/06 23:05:55 kristaps Exp $
1.1       kristaps    2: .\"
1.92      schwarze    3: .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
1.1       kristaps    4: .\"
                      5: .\" Permission to use, copy, modify, and distribute this software for any
1.16      kristaps    6: .\" purpose with or without fee is hereby granted, provided that the above
                      7: .\" copyright notice and this permission notice appear in all copies.
1.1       kristaps    8: .\"
1.16      kristaps    9: .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
                     10: .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
                     11: .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
                     12: .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
                     13: .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
                     14: .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
                     15: .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1.1       kristaps   16: .\"
1.96      kristaps   17: .Dd $Mdocdate: October 6 2011 $
1.14      kristaps   18: .Dt MANDOC 1
1.1       kristaps   19: .Os
                     20: .Sh NAME
                     21: .Nm mandoc
1.8       kristaps   22: .Nd format and display UNIX manuals
1.1       kristaps   23: .Sh SYNOPSIS
                     24: .Nm mandoc
1.58      kristaps   25: .Op Fl V
1.8       kristaps   26: .Op Fl m Ns Ar format
1.58      kristaps   27: .Op Fl O Ns Ar option
1.37      kristaps   28: .Op Fl T Ns Ar output
1.77      schwarze   29: .Op Fl W Ns Ar level
1.89      kristaps   30: .Op Ar
1.1       kristaps   31: .Sh DESCRIPTION
                     32: The
                     33: .Nm
1.26      kristaps   34: utility formats
1.8       kristaps   35: .Ux
1.57      kristaps   36: manual pages for display.
                     37: The arguments are as follows:
1.19      kristaps   38: .Bl -tag -width Ds
                     39: .It Fl m Ns Ar format
1.57      kristaps   40: Input format.
                     41: See
1.8       kristaps   42: .Sx Input Formats
1.57      kristaps   43: for available formats.
                     44: Defaults to
1.58      kristaps   45: .Fl m Ns Cm andoc .
                     46: .It Fl O Ns Ar option
1.57      kristaps   47: Comma-separated output options.
1.19      kristaps   48: .It Fl T Ns Ar output
1.57      kristaps   49: Output format.
                     50: See
1.1       kristaps   51: .Sx Output Formats
1.57      kristaps   52: for available formats.
                     53: Defaults to
1.58      kristaps   54: .Fl T Ns Cm ascii .
1.1       kristaps   55: .It Fl V
                     56: Print version and exit.
1.77      schwarze   57: .It Fl W Ns Ar level
                     58: Specify the minimum message
                     59: .Ar level
                     60: to be reported on the standard error output and to affect the exit status.
                     61: The
                     62: .Ar level
                     63: can be
                     64: .Cm warning ,
                     65: .Cm error ,
                     66: or
                     67: .Cm fatal .
                     68: The default is
                     69: .Fl W Ns Cm fatal ;
1.58      kristaps   70: .Fl W Ns Cm all
1.77      schwarze   71: is an alias for
                     72: .Fl W Ns Cm warning .
                     73: See
                     74: .Sx EXIT STATUS
                     75: and
                     76: .Sx DIAGNOSTICS
                     77: for details.
                     78: .Pp
                     79: The special option
                     80: .Fl W Ns Cm stop
                     81: tells
                     82: .Nm
                     83: to exit after parsing a file that causes warnings or errors of at least
                     84: the requested level.
                     85: No formatted output will be produced from that file.
                     86: If both a
                     87: .Ar level
                     88: and
                     89: .Cm stop
                     90: are requested, they can be joined with a comma, for example
                     91: .Fl W Ns Cm error , Ns Cm stop .
1.58      kristaps   92: .It Ar file
                     93: Read input from zero or more files.
1.57      kristaps   94: If unspecified, reads from stdin.
                     95: If multiple files are specified,
1.2       kristaps   96: .Nm
                     97: will halt with the first failed parse.
1.1       kristaps   98: .El
                     99: .Pp
1.26      kristaps  100: By default,
                    101: .Nm
                    102: reads
1.8       kristaps  103: .Xr mdoc 7
1.12      kristaps  104: or
                    105: .Xr man 7
1.8       kristaps  106: text from stdin, implying
1.58      kristaps  107: .Fl m Ns Cm andoc ,
1.48      kristaps  108: and produces
1.58      kristaps  109: .Fl T Ns Cm ascii
1.48      kristaps  110: output.
1.8       kristaps  111: .Ss Input Formats
                    112: The
                    113: .Nm
                    114: utility accepts
                    115: .Xr mdoc 7
                    116: and
                    117: .Xr man 7
                    118: input with
1.58      kristaps  119: .Fl m Ns Cm doc
1.8       kristaps  120: and
1.58      kristaps  121: .Fl m Ns Cm an ,
1.57      kristaps  122: respectively.
                    123: The
1.8       kristaps  124: .Xr mdoc 7
                    125: format is
                    126: .Em strongly
1.26      kristaps  127: recommended;
1.8       kristaps  128: .Xr man 7
                    129: should only be used for legacy manuals.
1.11      kristaps  130: .Pp
1.12      kristaps  131: A third option,
1.58      kristaps  132: .Fl m Ns Cm andoc ,
1.13      kristaps  133: which is also the default, determines encoding on-the-fly: if the first
1.26      kristaps  134: non-comment macro is
1.27      kristaps  135: .Sq \&Dd
1.13      kristaps  136: or
1.27      kristaps  137: .Sq \&Dt ,
1.26      kristaps  138: the
1.13      kristaps  139: .Xr mdoc 7
                    140: parser is used; otherwise, the
                    141: .Xr man 7
                    142: parser is used.
                    143: .Pp
                    144: If multiple
1.26      kristaps  145: files are specified with
1.58      kristaps  146: .Fl m Ns Cm andoc ,
1.57      kristaps  147: each has its file-type determined this way.
                    148: If multiple files are
1.13      kristaps  149: specified and
1.58      kristaps  150: .Fl m Ns Cm doc
1.12      kristaps  151: or
1.58      kristaps  152: .Fl m Ns Cm an
1.12      kristaps  153: is specified, then this format is used exclusively.
1.1       kristaps  154: .Ss Output Formats
                    155: The
                    156: .Nm
                    157: utility accepts the following
                    158: .Fl T
1.66      kristaps  159: arguments, which correspond to output modes:
1.93      schwarze  160: .Bl -tag -width "-Tlocale"
1.58      kristaps  161: .It Fl T Ns Cm ascii
1.81      kristaps  162: Produce 7-bit ASCII output.
1.57      kristaps  163: This is the default.
                    164: See
1.48      kristaps  165: .Sx ASCII Output .
1.58      kristaps  166: .It Fl T Ns Cm html
1.81      kristaps  167: Produce strict CSS1/HTML-4.01 output.
1.57      kristaps  168: See
1.48      kristaps  169: .Sx HTML Output .
1.58      kristaps  170: .It Fl T Ns Cm lint
                    171: Parse only: produce no output.
                    172: Implies
1.77      schwarze  173: .Fl W Ns Cm warning .
1.93      schwarze  174: .It Fl T Ns Cm locale
                    175: Encode output using the current locale.
                    176: See
                    177: .Sx Locale Output .
1.91      schwarze  178: .It Fl T Ns Cm man
1.95      kristaps  179: Produce
1.91      schwarze  180: .Xr man 7
1.95      kristaps  181: format output.
                    182: See
                    183: .Sx Man Output .
1.73      kristaps  184: .It Fl T Ns Cm pdf
                    185: Produce PDF output.
                    186: See
                    187: .Sx PDF Output .
1.62      kristaps  188: .It Fl T Ns Cm ps
                    189: Produce PostScript output.
                    190: See
                    191: .Sx PostScript Output .
1.58      kristaps  192: .It Fl T Ns Cm tree
                    193: Produce an indented parse tree.
1.93      schwarze  194: .It Fl T Ns Cm utf8
                    195: Encode output in the UTF\-8 multi-byte format.
                    196: See
                    197: .Sx UTF\-8 Output .
1.58      kristaps  198: .It Fl T Ns Cm xhtml
1.81      kristaps  199: Produce strict CSS1/XHTML-1.0 output.
1.57      kristaps  200: See
1.50      kristaps  201: .Sx XHTML Output .
1.1       kristaps  202: .El
1.13      kristaps  203: .Pp
                    204: If multiple input files are specified, these will be processed by the
                    205: corresponding filter in-order.
1.66      kristaps  206: .Ss ASCII Output
                    207: Output produced by
                    208: .Fl T Ns Cm ascii ,
                    209: which is the default, is rendered in standard 7-bit ASCII documented in
                    210: .Xr ascii 7 .
                    211: .Pp
                    212: Font styles are applied by using back-spaced encoding such that an
                    213: underlined character
                    214: .Sq c
                    215: is rendered as
                    216: .Sq _ Ns \e[bs] Ns c ,
                    217: where
                    218: .Sq \e[bs]
                    219: is the back-space character number 8.
                    220: Emboldened characters are rendered as
                    221: .Sq c Ns \e[bs] Ns c .
                    222: .Pp
                    223: The special characters documented in
                    224: .Xr mandoc_char 7
                    225: are rendered best-effort in an ASCII equivalent.
1.87      kristaps  226: If no equivalent is found,
                    227: .Sq \&?
                    228: is used instead.
1.66      kristaps  229: .Pp
                    230: Output width is limited to 78 visible columns unless literal input lines
                    231: exceed this limit.
                    232: .Pp
                    233: The following
                    234: .Fl O
                    235: arguments are accepted:
1.19      kristaps  236: .Bl -tag -width Ds
1.66      kristaps  237: .It Cm width Ns = Ns Ar width
                    238: The output width is set to
                    239: .Ar width ,
                    240: which will normalise to \(>=60.
1.1       kristaps  241: .El
1.66      kristaps  242: .Ss HTML Output
                    243: Output produced by
                    244: .Fl T Ns Cm html
                    245: conforms to HTML-4.01 strict.
                    246: .Pp
1.61      kristaps  247: The
1.66      kristaps  248: .Pa example.style.css
1.83      kristaps  249: file documents style-sheet classes available for customising output.
                    250: If a style-sheet is not specified with
                    251: .Fl O Ns Ar style ,
                    252: .Fl T Ns Cm html
                    253: defaults to simple output readable in any graphical or text-based web
                    254: browser.
1.66      kristaps  255: .Pp
1.89      kristaps  256: Special characters are rendered in decimal-encoded UTF\-8.
1.66      kristaps  257: .Pp
                    258: The following
1.64      kristaps  259: .Fl O
1.66      kristaps  260: arguments are accepted:
1.37      kristaps  261: .Bl -tag -width Ds
1.94      kristaps  262: .It Cm fragment
1.97    ! schwarze  263: Omit the
        !           264: .Aq !DOCTYPE
        !           265: declaration and the
        !           266: .Aq html ,
        !           267: .Aq head ,
        !           268: and
        !           269: .Aq body
        !           270: elements and only emit the subtree below the
        !           271: .Aq body
        !           272: element.
1.94      kristaps  273: The
                    274: .Cm style
1.97    ! schwarze  275: argument will be ignored.
1.94      kristaps  276: This is useful when embedding manual content within existing documents.
1.64      kristaps  277: .It Cm includes Ns = Ns Ar fmt
1.40      kristaps  278: The string
                    279: .Ar fmt ,
1.49      kristaps  280: for example,
1.40      kristaps  281: .Ar ../src/%I.html ,
                    282: is used as a template for linked header files (usually via the
                    283: .Sq \&In
1.57      kristaps  284: macro).
                    285: Instances of
1.43      kristaps  286: .Sq \&%I
1.57      kristaps  287: are replaced with the include filename.
                    288: The default is not to present a
1.40      kristaps  289: hyperlink.
1.64      kristaps  290: .It Cm man Ns = Ns Ar fmt
1.39      kristaps  291: The string
                    292: .Ar fmt ,
1.49      kristaps  293: for example,
1.39      kristaps  294: .Ar ../html%S/%N.%S.html ,
                    295: is used as a template for linked manuals (usually via the
1.37      kristaps  296: .Sq \&Xr
1.57      kristaps  297: macro).
                    298: Instances of
1.43      kristaps  299: .Sq \&%N
1.40      kristaps  300: and
                    301: .Sq %S
                    302: are replaced with the linked manual's name and section, respectively.
1.57      kristaps  303: If no section is included, section 1 is assumed.
                    304: The default is not to
1.40      kristaps  305: present a hyperlink.
1.64      kristaps  306: .It Cm style Ns = Ns Ar style.css
1.58      kristaps  307: The file
                    308: .Ar style.css
                    309: is used for an external style-sheet.
                    310: This must be a valid absolute or
                    311: relative URI.
1.61      kristaps  312: .El
1.93      schwarze  313: .Ss Locale Output
                    314: Locale-depending output encoding is triggered with
                    315: .Fl T Ns Cm locale .
                    316: This option is not available on all systems: systems without locale
                    317: support, or those whose internal representation is not natively UCS-4,
                    318: will fall back to
                    319: .Fl T Ns Cm ascii .
                    320: See
                    321: .Sx ASCII Output
                    322: for font style specification and available command-line arguments.
1.95      kristaps  323: .Ss Man Output
                    324: Translate input format into
                    325: .Xr man 7
                    326: output format.
                    327: This is useful for distributing manual sources to legancy systems
1.96      kristaps  328: lacking
1.95      kristaps  329: .Xr mdoc 7
                    330: formatters.
                    331: .Pp
                    332: If
                    333: .Xr mdoc 7
                    334: is passed as input, it is translated into
1.97    ! schwarze  335: .Xr man 7 .
        !           336: If the input format is
1.95      kristaps  337: .Xr man 7 ,
1.97    ! schwarze  338: the input is copied to the output, expanding any
1.95      kristaps  339: .Xr roff 7
                    340: .Sq so
1.97    ! schwarze  341: requests.
        !           342: The parser is also run, and as usual, the
        !           343: .Fl W
        !           344: level controls which
        !           345: .Sx DIAGNOSTICS
        !           346: are displayed before copying the input to the output.
1.93      schwarze  347: .Ss PDF Output
                    348: PDF-1.1 output may be generated by
                    349: .Fl T Ns Cm pdf .
                    350: See
                    351: .Sx PostScript Output
                    352: for
                    353: .Fl O
                    354: arguments and defaults.
1.62      kristaps  355: .Ss PostScript Output
1.65      kristaps  356: PostScript
                    357: .Qq Adobe-3.0
                    358: Level-2 pages may be generated by
1.62      kristaps  359: .Fl T Ns Cm ps .
1.67      kristaps  360: Output pages default to letter sized and are rendered in the Times font
1.70      kristaps  361: family, 11-point.
                    362: Margins are calculated as 1/9 the page length and width.
1.71      kristaps  363: Line-height is 1.4m.
1.66      kristaps  364: .Pp
                    365: Special characters are rendered as in
                    366: .Sx ASCII Output .
                    367: .Pp
                    368: The following
                    369: .Fl O
                    370: arguments are accepted:
                    371: .Bl -tag -width Ds
                    372: .It Cm paper Ns = Ns Ar name
                    373: The paper size
                    374: .Ar name
                    375: may be one of
1.68      kristaps  376: .Ar a3 ,
                    377: .Ar a4 ,
                    378: .Ar a5 ,
                    379: .Ar legal ,
1.66      kristaps  380: or
                    381: .Ar letter .
1.68      kristaps  382: You may also manually specify dimensions as
                    383: .Ar NNxNN ,
                    384: width by height in millimetres.
                    385: If an unknown value is encountered,
                    386: .Ar letter
                    387: is used.
1.66      kristaps  388: .El
1.93      schwarze  389: .Ss UTF\-8 Output
                    390: Use
                    391: .Fl T Ns Cm utf8
                    392: to force a UTF\-8 locale.
1.73      kristaps  393: See
1.93      schwarze  394: .Sx Locale Output
                    395: for details and options.
1.50      kristaps  396: .Ss XHTML Output
                    397: Output produced by
1.58      kristaps  398: .Fl T Ns Cm xhtml
1.50      kristaps  399: conforms to XHTML-1.0 strict.
                    400: .Pp
                    401: See
                    402: .Sx HTML Output
                    403: for details; beyond generating XHTML tags instead of HTML tags, these
                    404: output modes are identical.
1.77      schwarze  405: .Sh EXIT STATUS
                    406: The
                    407: .Nm
                    408: utility exits with one of the following values, controlled by the message
                    409: .Ar level
                    410: associated with the
                    411: .Fl W
                    412: option:
                    413: .Pp
                    414: .Bl -tag -width Ds -compact
                    415: .It 0
                    416: No warnings or errors occurred, or those that did were ignored because
                    417: they were lower than the requested
                    418: .Ar level .
                    419: .It 2
                    420: At least one warning occurred, but no error, and
                    421: .Fl W Ns Cm warning
                    422: was specified.
                    423: .It 3
                    424: At least one parsing error occurred, but no fatal error, and
                    425: .Fl W Ns Cm error
                    426: or
                    427: .Fl W Ns Cm warning
                    428: was specified.
                    429: .It 4
                    430: A fatal parsing error occurred.
                    431: .It 5
                    432: Invalid command line arguments were specified.
                    433: No input files have been read.
                    434: .It 6
                    435: An operating system error occurred, for example memory exhaustion or an
                    436: error accessing input files.
                    437: Such errors cause
                    438: .Nm
                    439: to exit at once, possibly in the middle of parsing or formatting a file.
                    440: .El
                    441: .Pp
                    442: Note that selecting
                    443: .Fl T Ns Cm lint
                    444: output mode implies
                    445: .Fl W Ns Cm warning .
1.1       kristaps  446: .Sh EXAMPLES
1.13      kristaps  447: To page manuals to the terminal:
1.1       kristaps  448: .Pp
1.82      kristaps  449: .Dl $ mandoc \-Wall,stop mandoc.1 2\*(Gt&1 | less
                    450: .Dl $ mandoc mandoc.1 mdoc.3 mdoc.7 | less
1.28      kristaps  451: .Pp
1.41      kristaps  452: To produce HTML manuals with
                    453: .Ar style.css
                    454: as the style-sheet:
1.38      kristaps  455: .Pp
1.82      kristaps  456: .Dl $ mandoc \-Thtml -Ostyle=style.css mdoc.7 \*(Gt mdoc.7.html
1.38      kristaps  457: .Pp
1.28      kristaps  458: To check over a large set of manuals:
                    459: .Pp
1.77      schwarze  460: .Dl $ mandoc \-Tlint `find /usr/src -name \e*\e.[1-9]`
1.66      kristaps  461: .Pp
                    462: To produce a series of PostScript manuals for A4 paper:
                    463: .Pp
1.82      kristaps  464: .Dl $ mandoc \-Tps \-Opaper=a4 mdoc.7 man.7 \*(Gt manuals.ps
1.91      schwarze  465: .Pp
                    466: Convert a modern
                    467: .Xr mdoc 7
                    468: manual to the older
                    469: .Xr man 7
                    470: format, for use on systems lacking an
                    471: .Xr mdoc 7
                    472: parser:
                    473: .Pp
                    474: .Dl $ mandoc \-Tman foo.mdoc \*(Gt foo.man
1.77      schwarze  475: .Sh DIAGNOSTICS
                    476: Standard error messages reporting parsing errors are prefixed by
                    477: .Pp
                    478: .Sm off
                    479: .D1 Ar file : line : column : \ level :
                    480: .Sm on
                    481: .Pp
                    482: where the fields have the following meanings:
                    483: .Bl -tag -width "column"
                    484: .It Ar file
                    485: The name of the input file causing the message.
                    486: .It Ar line
                    487: The line number in that input file.
                    488: Line numbering starts at 1.
                    489: .It Ar column
                    490: The column number in that input file.
                    491: Column numbering starts at 1.
                    492: If the issue is caused by a word, the column number usually
                    493: points to the first character of the word.
                    494: .It Ar level
                    495: The message level, printed in capital letters.
                    496: .El
                    497: .Pp
                    498: Message levels have the following meanings:
                    499: .Bl -tag -width "warning"
                    500: .It Cm fatal
                    501: The parser is unable to parse a given input file at all.
                    502: No formatted output is produced from that input file.
                    503: .It Cm error
                    504: An input file contains syntax that cannot be safely interpreted,
                    505: either because it is invalid or because
                    506: .Nm
                    507: does not implement it yet.
                    508: By discarding part of the input or inserting missing tokens,
                    509: the parser is able to continue, and the error does not prevent
                    510: generation of formatted output, but typically, preparing that
                    511: output involves information loss, broken document structure
                    512: or unintended formatting.
                    513: .It Cm warning
                    514: An input file uses obsolete, discouraged or non-portable syntax.
                    515: All the same, the meaning of the input is unambiguous and a correct
                    516: rendering can be produced.
                    517: Documents causing warnings may render poorly when using other
                    518: formatting tools instead of
                    519: .Nm .
                    520: .El
                    521: .Pp
                    522: Messages of the
                    523: .Cm warning
                    524: and
                    525: .Cm error
                    526: levels are hidden unless their level, or a lower level, is requested using a
                    527: .Fl W
                    528: option or
                    529: .Fl T Ns Cm lint
                    530: output mode.
                    531: .Pp
                    532: The
                    533: .Nm
                    534: utility may also print messages related to invalid command line arguments
                    535: or operating system errors, for example when memory is exhausted or
1.78      schwarze  536: input files cannot be read.
                    537: Such messages do not carry the prefix described above.
1.20      kristaps  538: .Sh COMPATIBILITY
1.26      kristaps  539: This section summarises
1.20      kristaps  540: .Nm
1.76      kristaps  541: compatibility with GNU troff.
1.32      kristaps  542: Each input and output format is separately noted.
1.48      kristaps  543: .Ss ASCII Compatibility
1.37      kristaps  544: .Bl -bullet -compact
1.29      kristaps  545: .It
1.87      kristaps  546: Unrenderable unicode codepoints specified with
1.86      kristaps  547: .Sq \e[uNNNN]
                    548: escapes are printed as
                    549: .Sq \&?
                    550: in mandoc.
                    551: In GNU troff, these raise an error.
                    552: .It
1.49      kristaps  553: The
1.33      kristaps  554: .Sq \&Bd \-literal
1.49      kristaps  555: and
1.32      kristaps  556: .Sq \&Bd \-unfilled
                    557: macros of
                    558: .Xr mdoc 7
                    559: in
1.58      kristaps  560: .Fl T Ns Cm ascii
1.32      kristaps  561: are synonyms, as are \-filled and \-ragged.
1.26      kristaps  562: .It
1.86      kristaps  563: In historic GNU troff, the
1.27      kristaps  564: .Sq \&Pa
1.32      kristaps  565: .Xr mdoc 7
                    566: macro does not underline when scoped under an
1.30      kristaps  567: .Sq \&It
1.57      kristaps  568: in the FILES section.
                    569: This behaves correctly in
1.27      kristaps  570: .Nm .
                    571: .It
1.58      kristaps  572: A list or display following the
1.27      kristaps  573: .Sq \&Ss
1.32      kristaps  574: .Xr mdoc 7
                    575: macro in
1.58      kristaps  576: .Fl T Ns Cm ascii
1.20      kristaps  577: does not assert a prior vertical break, just as it doesn't with
1.27      kristaps  578: .Sq \&Sh .
1.20      kristaps  579: .It
1.32      kristaps  580: The
                    581: .Sq \&na
                    582: .Xr man 7
1.34      kristaps  583: macro in
1.58      kristaps  584: .Fl T Ns Cm ascii
1.34      kristaps  585: has no effect.
1.20      kristaps  586: .It
                    587: Words aren't hyphenated.
                    588: .El
1.50      kristaps  589: .Ss HTML/XHTML Compatibility
1.42      kristaps  590: .Bl -bullet -compact
                    591: .It
                    592: The
1.47      kristaps  593: .Sq \efP
                    594: escape will revert the font to the previous
                    595: .Sq \ef
                    596: escape, not to the last rendered decoration, which is now dictated by
1.57      kristaps  597: CSS instead of hard-coded.
                    598: It also will not span past the current scope,
                    599: for the same reason.
                    600: Note that in
1.47      kristaps  601: .Sx ASCII Output
                    602: mode, this will work fine.
                    603: .It
                    604: The
1.42      kristaps  605: .Xr mdoc 7
                    606: .Sq \&Bl \-hang
                    607: and
                    608: .Sq \&Bl \-tag
                    609: list types render similarly (no break following overreached left-hand
                    610: side) due to the expressive constraints of HTML.
                    611: .It
                    612: The
                    613: .Xr man 7
                    614: .Sq IP
                    615: and
                    616: .Sq TP
                    617: lists render similarly.
                    618: .El
1.1       kristaps  619: .Sh SEE ALSO
1.85      kristaps  620: .Xr eqn 7 ,
1.57      kristaps  621: .Xr man 7 ,
1.13      kristaps  622: .Xr mandoc_char 7 ,
1.84      kristaps  623: .Xr mdoc 7 ,
                    624: .Xr roff 7 ,
                    625: .Xr tbl 7
1.1       kristaps  626: .Sh AUTHORS
                    627: The
                    628: .Nm
1.26      kristaps  629: utility was written by
1.90      kristaps  630: .An Kristaps Dzonsons ,
                    631: .Mt kristaps@bsd.lv .
1.39      kristaps  632: .Sh CAVEATS
                    633: In
1.58      kristaps  634: .Fl T Ns Cm html
1.50      kristaps  635: and
1.58      kristaps  636: .Fl T Ns Cm xhtml ,
1.39      kristaps  637: the maximum size of an element attribute is determined by
                    638: .Dv BUFSIZ ,
1.57      kristaps  639: which is usually 1024 bytes.
                    640: Be aware of this when setting long link
1.58      kristaps  641: formats such as
                    642: .Fl O Ns Cm style Ns = Ns Ar really/long/link .
1.51      kristaps  643: .Pp
                    644: Nesting elements within next-line element scopes of
1.58      kristaps  645: .Fl m Ns Cm an ,
1.51      kristaps  646: such as
                    647: .Sq br
                    648: within an empty
                    649: .Sq B ,
                    650: will confuse
1.58      kristaps  651: .Fl T Ns Cm html
1.51      kristaps  652: and
1.58      kristaps  653: .Fl T Ns Cm xhtml
1.52      kristaps  654: and cause them to forget the formatting of the prior next-line scope.
1.53      kristaps  655: .Pp
1.54      kristaps  656: The
                    657: .Sq \(aq
1.55      kristaps  658: control character is an alias for the standard macro control character
                    659: and does not emit a line-break as stipulated in GNU troff.

CVSweb