Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Have mandoc-db strip out escapes that aren't special or predefined | Kristaps Dzonsons | 2011-05-01 | 1 | -15/+54 |
| | | | | characters. This is a work-in-progress that has some issues. | ||||
* | Documenting the mchars_XXXX part of mandoc.h. | Kristaps Dzonsons | 2011-05-01 | 1 | -0/+86 |
| | |||||
* | Remove mdoc.template. It's already embedded in man(7) and mdoc(7); no | Kristaps Dzonsons | 2011-05-01 | 1 | -42/+0 |
| | | | | need to have it floating around separately. | ||||
* | Document the fact that \N'' accepts only printable characters. | Kristaps Dzonsons | 2011-05-01 | 1 | -0/+3 |
| | |||||
* | Filter all \N'' values with isprint(). Ok schwarze@. | Kristaps Dzonsons | 2011-05-01 | 1 | -9/+5 |
| | |||||
* | Make mchars_num2char() return a char like it says. | Kristaps Dzonsons | 2011-04-30 | 4 | -19/+17 |
| | |||||
* | Rename mchars_init() -> mchars_alloc() for consistency. | Kristaps Dzonsons | 2011-04-30 | 5 | -5/+5 |
| | |||||
* | Remove enum mcharst, which hasn't been used in quite some time. | Kristaps Dzonsons | 2011-04-30 | 5 | -12/+5 |
| | |||||
* | No code change: fixing spelling errors. From a patch by uqs@. Thanks! | Kristaps Dzonsons | 2011-04-30 | 9 | -12/+12 |
| | |||||
* | Was installing libmandoc.a without mandoc.h... | Kristaps Dzonsons | 2011-04-30 | 1 | -0/+2 |
| | |||||
* | Move "chars" interface out of out.h and into mandoc.h. This doesn't | Kristaps Dzonsons | 2011-04-29 | 10 | -63/+56 |
| | | | | | | | | | | change any code but for renaming functions and types to be consistent with other mandoc.h stuff. The reason for moving into libmandoc is that the rendering of special characters is part of mandoc itself---not an external part. From mandoc(1)'s perspective, this changes nothing, but for other utilities, it's important to have these part of libmandoc. Note this isn't documented [yet] in mandoc.3 because there are some parts I'd like to change around beforehand. | ||||
* | Let mandoc-db grok `St' tokens. | Kristaps Dzonsons | 2011-04-28 | 2 | -2/+22 |
| | |||||
* | Closing delimiters only suppress spacing when they follow something. | Ingo Schwarze | 2011-04-25 | 1 | -1/+13 |
| | | | | | Fixing a regression introduced in rev. 1.105. ok and prodding for comments kristaps@. | ||||
* | User defined macros may invoke high-level macros. | Ingo Schwarze | 2011-04-24 | 1 | -2/+1 |
| | | | | | The latter got lost due to a regression in rev. 1.130. ok kristaps@ | ||||
* | Prevent line breaks right before numbers. Groff does the same. | Ingo Schwarze | 2011-04-24 | 2 | -36/+40 |
| | | | | OK kristaps@. | ||||
* | Revert last change: this screwed up displaying in other pages (didn't | Kristaps Dzonsons | 2011-04-23 | 1 | -1/+1 |
| | | | | test it enough). | ||||
* | Make the `Nm' -Thtml attribute be min-width instead of width. This is a | Kristaps Dzonsons | 2011-04-23 | 1 | -1/+1 |
| | | | | | | | | quick fix for, say, rc.d(8) in OpenBSD, which has nested macros on the `Nm' SYNOPSIS line that were skipped over by the length calculator. This should [maybe?] be a recursive length check, but still it'd need to be a min-width to accomodate for (say) `Qq' and the like printing excess characters post-length-calculation. | ||||
* | Add \*(Ai (ANSI) and \*(Px (POSIX) predefined strings, which are part of | Kristaps Dzonsons | 2011-04-20 | 3 | -3/+12 |
| | | | | | | groff's tmac.doc package. Originally noted by Matthew Dempsky. Feedback by Jason McIntyre, joerg@, and schwarze@. Also add some documentation about predefined strings, tweaked by schwarze@. | ||||
* | Clean up parsing of delimiters in -mdoc. First, remove the "dowarn" | Kristaps Dzonsons | 2011-04-19 | 7 | -197/+166 |
| | | | | | | | | variable from mandoc_getarg() so that it prints the warning every time. Then, remove the warning from args_checkpunct(). This way, warnings are being posted at the correct time. This makes the flag argument to mdoc_zargs() superfluous, so make it be zero when it's invoked. Finally, move the args() flags into mdoc_argv.c and make them enums. | ||||
* | Add more documentation bits to mandoc.3. | Kristaps Dzonsons | 2011-04-19 | 1 | -0/+72 |
| | |||||
* | .Pp in .Bl -column | Ingo Schwarze | 2011-04-17 | 1 | -0/+4 |
| | |||||
* | The semantics of .Bk was described incorrectly | Ingo Schwarze | 2011-04-17 | 1 | -2/+3 |
| | | | | | | for the case of multiple sibling macros on a single input line. Issue found investigating a question from sobrado@. "I like this diff" kristaps@ | ||||
* | Use mandoc_getarg() for the regular case of processing unquoted | Kristaps Dzonsons | 2011-04-17 | 1 | -19/+3 |
| | | | | arguments in -mdoc documents. | ||||
* | Get mdoc_argv.c ready to use [some of] mandoc_getarg() by giving said | Kristaps Dzonsons | 2011-04-17 | 5 | -18/+20 |
| | | | | function a parameter to suppress warnings. | ||||
* | mini-bug at eol after .Bl -column .It | Ingo Schwarze | 2011-04-16 | 1 | -0/+10 |
| | |||||
* | lines in tables and .RS/.RE nesting | Ingo Schwarze | 2011-04-16 | 1 | -0/+8 |
| | |||||
* | Check in fix to roff conditional if/else stack running out of space. | Kristaps Dzonsons | 2011-04-13 | 1 | -33/+24 |
| | | | | | | | This transforms the stack pop to occur prior to body execution, instead of afterward. Floated to tech@ without response, but it makes sense that this is alright and doesn't cause problems during extensive testing. | ||||
* | Back out commit to roff.c that needs to go in on its own. | Kristaps Dzonsons | 2011-04-13 | 1 | -24/+33 |
| | |||||
* | Remove TODO from prior commit of lifting warnings from `Sh', `Ss', `SH', | Kristaps Dzonsons | 2011-04-13 | 2 | -40/+24 |
| | | | | and `SS' bodies. | ||||
* | Remove the warning for empty bodies of `Sh', `Ss', `SH', and `SS'. This | Kristaps Dzonsons | 2011-04-13 | 2 | -9/+6 |
| | | | | | | | | | | | prompted by a TODO by schwarze@, originally from Gleydson Soares, that an empty `SS' was raising an error (it hasn't for some time). It makes sense these shouldn't warn, as omitting their contents doesn't change anything in the structure of the document (groff and mandoc specifically account for the whitespace between empty sections). This doesn't change any manuals, which only refer to the line arguments (or possibly next-line, in the case of man(7) syntax). | ||||
* | empty .SS is ok | Ingo Schwarze | 2011-04-12 | 1 | -0/+7 |
| | |||||
* | Let mandoc-db also collect -man descriptions. | Kristaps Dzonsons | 2011-04-12 | 1 | -5/+25 |
| | |||||
* | Updating mandoc-db manual page with new recno contents. | Kristaps Dzonsons | 2011-04-11 | 1 | -3/+12 |
| | |||||
* | Update example.style.css to be a bit more readable by default. | Kristaps Dzonsons | 2011-04-11 | 1 | -18/+12 |
| | |||||
* | Have mandoc-db accumulate manual page descriptions (`Nd' in -mdoc parlance) | Kristaps Dzonsons | 2011-04-11 | 1 | -29/+79 |
| | | | | | in the index. This allows, with both the btree and index, full emulation of apropos(1) and other goodies. | ||||
* | Ignore \# lines alongside \". From groff(7): | Kristaps Dzonsons | 2011-04-11 | 1 | -1/+1 |
| | | | | | | \# Everything up to and including the next newline is ignored. This is interpreted in copy mode. This is like \" except that the terminating newline is ignored as well. | ||||
* | Use dbt_xxxx functions to stash both filename and manual section in the | Kristaps Dzonsons | 2011-04-11 | 1 | -16/+18 |
| | | | | | | value part of the index. This is the actual manual section---before, mandoc.cgi was relying on the file suffix, but this can be (e.g.) .man or whatnot. This is The Correct Way (tm). | ||||
* | Tidy up www page: remove all sorts of DIV crap, superfluous CSS, in-line | Kristaps Dzonsons | 2011-04-09 | 2 | -412/+363 |
| | | | | STYLE attributes, and so on. Now renders nicely in lynx. | ||||
* | Skeleton of documentation functions, types, and variables in mandoc.h. | Kristaps Dzonsons | 2011-04-09 | 1 | -0/+41 |
| | |||||
* | Lint catching some potential issues. | Kristaps Dzonsons | 2011-04-09 | 1 | -3/+3 |
| | |||||
* | Remove a2roffdeco() and mandoc_special() functions and replace them with | Kristaps Dzonsons | 2011-04-09 | 10 | -525/+470 |
| | | | | | | | | | | | | | | | | | | a public (mandoc.h) function mandoc_escape(), which merges the functionality of both prior functions. Reason: code duplication. The a2roffdeco() and mandoc_special() functions were pretty much the same thing and both quite complex. This allows one function to receive improvements in (e.g.) subexpression handling and performance, instead of having to replicate functionality. As such, the mandoc_escape() function already handles a superset of the escapes handled in previous versions and has improvements in performance (using strcspn(), for example) and reliable handling of subexpressions. This code Works For Me, but may need work to catch any regressions. Since the benefits are great (leaner code, simpler API), I'd rather have it in-tree than floating as a patch. | ||||
* | Don't shadow global identifiers. | Joerg Sonnenberger | 2011-04-07 | 2 | -17/+17 |
| | |||||
* | First, properly escape periods with \&. Then consistently refer to | Kristaps Dzonsons | 2011-04-06 | 1 | -61/+82 |
| | | | | | | | | | | non-macro lines as "text lines" (after defining them as such). Clean up notion of font scope. Note comma usage in multiple `Nm's. Note ordering of SYNOPSIS section stuff. Add some bits about DESCRIPTION syntax (brief description, then args). Note that `Bl' can also contain HEAD. Finally, fix some `Cm' entries to be properly `Ar'. Ok Jason McIntyre. | ||||
* | On .de macro lines, after the macro name, space and tab are equivalent. | Ingo Schwarze | 2011-04-05 | 1 | -5/+3 |
| | | | | | Bug reported by Tristan dot LeGuern at gmail dot com in fvwm2(1). tweaks and ok kristaps@; earlier version looked good to espie@ as well | ||||
* | Lint-checks over mandoc-db.c. | Kristaps Dzonsons | 2011-04-05 | 1 | -18/+14 |
| | |||||
* | Use a little more horsepower in parsing out NAME sections from -man | Kristaps Dzonsons | 2011-04-05 | 1 | -16/+56 |
| | | | | manuals. This covers the majority case. | ||||
* | Fix type- and NULL-check to be correct node (last, not child). Prevents | Kristaps Dzonsons | 2011-04-05 | 1 | -1/+1 |
| | | | | segfault in NetBSD. | ||||
* | Add mandoc-db.c checking for utility-name in NAME section of -man | Kristaps Dzonsons | 2011-04-05 | 1 | -3/+77 |
| | | | | documents. | ||||
* | Make sure to create LIBDIR. From a patch by Thomas Klausner, thanks! | Kristaps Dzonsons | 2011-04-05 | 1 | -0/+1 |
| | |||||
* | Add config.h Glue for OpenIndiana (and older OpenSolaris) to build. | Kristaps Dzonsons | 2011-04-04 | 4 | -0/+16 |
| | | | | From a patch by Yuri Pankov, thanks! |