aboutsummaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Change comment: NetBSD just fixed their headers; but leave theIngo Schwarze2018-08-151-2/+2
| | | | | workaround in place for now for the benefit of older systems, and other systems might contain similar problems.
* NULL requires <stddef.h>Ingo Schwarze2018-08-151-1/+2
|
* Autodetect whether _GNU_SOURCE or _OPENBSD_SOURCE are needed; theIngo Schwarze2018-08-156-65/+70
| | | | | latter is a NetBSD idiosyncrasy reported by wiz@. Also take into account that NetBSD declares getsubopt(3) in the wrong header.
* support tail arguments on the .ME and .UE macros,Ingo Schwarze2018-08-1410-39/+64
| | | | used for example in the ditroff(7) manual of the groff package
* error message for invalid -S argumentIngo Schwarze2018-08-101-1/+10
|
* handle the non-portable GNU-style \[charNN], \[charNNN] characterIngo Schwarze2018-08-103-14/+35
| | | | escape sequences, used for example in the groff_char(7) manual page
* The groff man-ext macros define fonts CB, CI, and CR,Ingo Schwarze2018-08-104-15/+19
| | | | | and some groff manual pages actually use them in .ft requests. It's easy enough to handle these .ft requests in mandoc, too.
* Implement the roff(7) .nop (no operation) request.Ingo Schwarze2018-08-103-12/+22
| | | | | Examples of manual pages (ab)using it include groff(7), chem(1), groff_mom(7), and groff_hdtbl(7).
* If somebody asks "man 3 chmod",Ingo Schwarze2018-08-091-3/+9
| | | | | | don't respond with the lie: "No entry for chmod in the manual." Instead, say "No entry for chmod in section 3 of the manual." Came up after a question from kn@; OK kn@.
* some fixes for the "www" and "www-install" maintainer targetsIngo Schwarze2018-08-091-9/+14
|
* release 1.14.4VERSION_1_14_4Ingo Schwarze2018-08-081-6/+8
|
* Even though we strongly discourage escaping hyphens in manual pagesIngo Schwarze2018-08-081-2/+2
| | | | | in general, when introducing the *typographic* term "hyphen", actually display a real hyphen in output modes supporting it.
* Reorder the text in the "Dashes and Hyphens" subsection to keep theIngo Schwarze2018-08-081-25/+25
| | | | | | simplest and most important instructions together and at the beginning. No text change. Suggested by jmc@.
* Clarify the confusing "(text)" annotation in the character lists.Ingo Schwarze2018-08-081-17/+18
| | | | | | | | | | In some cases, it meant "render as an ASCII character in output modes that have a notion of codepoints" (e.g. UTF-8, HTML); in other cases, "render in the text font in output modes that also provide a special font for mathematical symbols" (e.g. PostScript, PDF). Also explicitly annotate the escape sequences that use a special font if available. OK bentley@
* After years of deliberation, finally provide a clear recommendationIngo Schwarze2018-08-081-16/+21
| | | | | | | | for hyphens and minus signs in manual pages. Since there is consensus that a typographically perfect solution is impossible, let's KISS - just write "-", don't bother with "\-", all currently relevant manual page formatters can handle "-" reasonably. OK jmc@ bentley@
* scanned to groff manual pages for todo items;Ingo Schwarze2018-08-061-1/+29
| | | | | the sheer number of issues is amazing, but they all look feasible
* Fix an off-by-one string read access that could happen if an emptyIngo Schwarze2018-08-011-3/+2
| | | | | string argument preceded a string argument beginning with "--". Found by Leah Neukirchen <leah at vuxu dot org> with -Wpointer-compare.
* After rewriting the parse buffer from scratch, we also have to resetIngo Schwarze2018-08-012-3/+8
| | | | | | the parse point to the beginning of the new buffer or we risk out of bounds accesses. Bug found by Leah Neukirchen <leah at vuxu dot org> with valgrind on Void Linux.
* Avoid a read access one byte beyond the end of an allocated stringIngo Schwarze2018-08-012-5/+5
| | | | | which occurred in situations like ".Fl a Cm --"; found by Leah Neukirchen <leah at vuxu dot org> with valgrind on Void Linux.
* more 1.14.4 release preparations:Ingo Schwarze2018-07-316-67/+113
| | | | | | autodetect whether the compiler can use -W and -static, clearer output from ./configure, and adjust some configuration instructions
* makewhatis -p complains about language subdirectoriesIngo Schwarze2018-07-311-1/+5
|
* html.c now uses ohash, and new file compat_strndup.cIngo Schwarze2018-07-311-1/+2
|
* first steps toward the 1.14.4 releaseIngo Schwarze2018-07-313-11/+84
|
* Issue a STYLE message when normalizing the date format in .Dd/.TH.Ingo Schwarze2018-07-285-14/+29
| | | | | | | | Leah Neukirchen pointed out that mdoclint(1) used to warn about a leading zero before the day number, so we know that both NetBSD and Void Linux want the message. It does no harm on OpenBSD because Mdocdate always does the right thing anyway. jmc@ agrees that it makes sense in contexts not using Mdocdate.
* remove two entries that were doneIngo Schwarze2018-07-281-11/+3
|
* garbage collect the unused "#define INDENT"Ingo Schwarze2018-07-272-6/+2
|
* Remove more redundant element selectors where the class selectorIngo Schwarze2018-07-231-37/+37
| | | | | is already sufficient. John Gardner tells me that "CSS selectors should only contain what's necessary to target their subjects".
* replace the last instances of ex units by em;Ingo Schwarze2018-07-231-6/+6
| | | | recommended by John Gardner <gardnerjohng at gmail dot com>
* new todos, mostly from Pali Rohar, mostly tbl(7)Ingo Schwarze2018-07-161-1/+19
|
* Delete substantial amounts of codeIngo Schwarze2018-06-255-180/+27
| | | | now that we no longer use variable style= attributes.
* Get rid of the last explicit length in HTML style= attributes.Ingo Schwarze2018-06-251-13/+3
| | | | | | | | | 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.
* Delete support for style=margin-left attributes, which are no longer used.Ingo Schwarze2018-06-252-21/+4
|
* Drop explicit, constant style=margin-left attribute on .Bf blocks.Ingo Schwarze2018-06-251-2/+2
| | | | Since <div> uses HTML_NLAROUND, it is no longer needed.
* Delete support for style=width attributes, which are no longer used.Ingo Schwarze2018-06-252-66/+2
|
* Do not write <colgroup> elements. Their only purpose is to enforceIngo Schwarze2018-06-254-38/+5
| | | | | | author-specified column widths, which can harm responsive design and provide no real benefit: HTML rendering engines usually do just fine automatically selecting appropriate column widths.
* Ignore author-specified indentation for .RS; it harms responsiveIngo Schwarze2018-06-251-21/+3
| | | | | design. Use the existing @media-dependent indent instead. This removes the last style= attribute from man(7) output.
* Delete support for the style=text-indent attribute, which is no longer used.Ingo Schwarze2018-06-252-10/+3
|
* For -man -Thtml, ignore author-specified .HP widths because theyIngo Schwarze2018-06-252-17/+11
| | | | harm responsive design; use @media-dependent defaults instead.
* Revert previous: style=height is still used by roff_html.c, and itIngo Schwarze2018-06-181-1/+4
| | | | | doesn't actually harm responsive design, so keep it for now. Bug reported in de.comp.os.unix.bsd via naddy@, thanks.
* delete support for the HTML style=height property, which is no longer usedIngo Schwarze2018-06-102-10/+3
|
* In HTML output, for lists that have an -indent argument, just useIngo Schwarze2018-06-102-20/+13
| | | | | | | | | | | | | a uniform indentation in CSS adapted to the viewport width and ignore the value of the argument taken from mdoc(7). While author-specified widths somewhat work as a micro-optimization in terminal and typeset output, they are nothing but harmful in HTML style= attributes because they break responsive design, whereas using a reasonable default indent almost never results in ugly output. Admittedly, the author-specified width might occasionally look even better, but only slightly so, and only for some viewport sizes. Based on guidance provided by John Gardner.
* When formatting man(7) documents that do not contain .SH macrosIngo Schwarze2018-06-101-1/+13
| | | | | with -Tps or -Tpdf, do not squeeze the whole text beyond the right margin. Bug reported by Will Backman during BSDCan.
* Remove redundant value= attributes from option elements,Ingo Schwarze2018-05-291-8/+6
| | | | | | and use type=search rather than type=text for the input element because it tends to better support autocompletion. Both suggested by John Gardner <gardnerjohng at gmail dot com>.
* Delete support for the print_otag(sw) * and - modifiers,Ingo Schwarze2018-05-292-24/+5
| | | | which are no longer used because we write fewer style= attributes.
* Ignore author-specified -width arguments for -tag and -hang listsIngo Schwarze2018-05-291-7/+6
| | | | | | | | | | | | | | | in HTML output. For terminal and typeset output, such arguments kind of work to achieve presentational micro-optimization. But for HTML, they only do harm. Large increases usually look ugly. Large reductions are impossible since the default is not large in the first place. Small tweaks in either direction are not important; at least not important enough to justify making responsive design impossible. Triggered by John Gardner's suggestion to further reduce style= attributes in the HTML code, in particular those containing hard-coded lengths.
* John Gardner tells me that among frontend developers, gratuitous useIngo Schwarze2018-05-281-53/+56
| | | | | | | | | | of double selectors like "element.class" is considered poor style. When doing selection mainly by elements is not appropriate because most elements require several different styles, exclusively selecting by class is less cumbersome, more concise, and more flexible. So drop the elements from the selectors, except where they are required for disambiguation and except where they add clarity due to the presence of child selectors.
* URL-fragment strings can only contain certain characters.Ingo Schwarze2018-05-281-3/+9
| | | | | Fixing HTML syntax violations e.g. in pf.conf(5) and ifconfig(8) reported by Anton Lazarov <lists at wrant dot com>.
* Start with baby steps towards responsive design:Ingo Schwarze2018-05-261-1/+15
| | | | | Use a @media width query to select a set of default indentations. Suggested by John Gardner <gardnerjohng at gmail dot com>.
* Use em units rather than ex units for horizontal lengths.Ingo Schwarze2018-05-261-20/+20
| | | | | | John Gardner and others tell me it produces more predictable results and is generally considered better style. Also use 0em instead of 0ex, in general.
* Do not write duplicate id= attributes, they violate HTML syntax.Ingo Schwarze2018-05-255-36/+60
| | | | | Append suffixes for disambiguation. Issue first reported by Jakub Klinkovsky <j dot l dot k at gmx dot com> (Arch Linux).