summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc
AgeCommit message (Collapse)Author
2011-02-06Do not break the line between the arguments of .Bsx .Dx .Fx .Nx .Ox .Ux.Ingo Schwarze
Original patch from kristaps@, but i fixed a regression regarding .Bk.
2011-02-06Some pre-handlers produce output, so reorder the code to set upIngo Schwarze
keep flags before they are called. Without this bugfix, .Bk was ineffective in some cases. "looks reasonable" kristaps@
2011-02-06If .Ns is specified on its own line, ignore it, like groff does;Ingo Schwarze
from kristaps@.
2011-02-06another test found in yet another tree;Ingo Schwarze
no more working, but uncommitted tests lying around now
2011-02-06more tests found in my other treeIngo Schwarze
2011-02-05another test found in my treeIngo Schwarze
2011-02-05some more tests found in my treeIngo Schwarze
2011-01-31When in a <PRE>, don't print out the <BR> before lines that haveIngo Schwarze
leading whitespace; from kristaps@.
2011-01-30Make .Bx accept not more than two arguments.Ingo Schwarze
Convert the first character of the second argument to uppercase. Append the second argument with a hyphen. Improves chpass(1), column(1), fstat(1), ... from kristaps@
2011-01-30Implement the \N'number' (numbered character) roff escape sequence.Ingo Schwarze
Don't use it in new manuals, it is inherently non-portable, but we need it for backward-compatibility with existing manuals, for example in Xenocara driver pages. ok kristaps@ matthieu@ jmc@
2011-01-17Refrain from throwing fatal errors forIngo Schwarze
* .br .sp .nf .fi .na with arguments - just skip the arguments * .TH lacking arguments - use empty strings instead like groff * .TH with excessive arguments - skip those Reminded by Joerg Sonnenberger, ok kristaps@.
2011-01-16In literal context, do not generate output line breaks between macroIngo Schwarze
arguments. This fixes a long-standing bug reported repeatedly, in particular by naddy@ and brad@. Fix by kristaps@, minus one regression caught by my test suite.
2011-01-16If the first character of a free-form text input line is whitespace,Ingo Schwarze
then it will start a new output line; from kristaps@.
2011-01-12Implement the roff .rm request (remove macro).Ingo Schwarze
Using the new roff_getname() function, this is really simple. Breaks mandoc of the habit of reporting an error in each pod2man(1) preamble. Reminded by a report from brad@.
2011-01-10Refactoring in preparation for .rm support:Ingo Schwarze
Unify parsing of names given as roff request arguments into a new function roff_getname(), which is rather different from the parsing function for normal arguments, mandoc_getarg(), because names cannot be quoted and cannot contain whitespace or escaped characters. The new function now throws an ERROR when finding escaped characters in a name. "I'm fine with this." kristaps@
2011-01-09check that lists lacking their end macro do not crash;Ingo Schwarze
related to mdoc_macro.c rev. 1.59
2011-01-09test font-alternating blocks in literal context;Ingo Schwarze
related to usr.bin/mandoc/man_term.c rev. 1.51
2011-01-09Only .Bd -literal has 8-character tabs,Ingo Schwarze
while .Bd -unfilled has 5-character tabs just like normal text; from kristaps@.
2011-01-04some more tests regarding empty macrosIngo Schwarze
2011-01-04Fix stupid commit error pointed out by guenther@ (thanks!):Ingo Schwarze
1) Actually commit TP/* this time. 2) Revert IP/* to 1.1, which is the correct version. What happened is that i committed both IP/* and TP/* into IP, committing two versions in one commit, because the file TP/CVS/Repository was corrupt in my tree. I didn't even know that could happen...
2011-01-04Multiple man(7) .IP and .TP fixes started during p2k10:Ingo Schwarze
Affecting both -Tascii and -Thtml: * The .IP HEAD uses the second argument as the width, not the last one. * Only print the first .IP HEAD argument, not all but the last. Affecting only -Tascii: * The .IP and .TP HEADs must be printed without literal mode, but literal mode must be restored afterwards. * After the .IP and .TP bodies, we only want term_newln(), not term_flushln(), or we would get two blank lines in literal mode. * The .TP HEAD does not use TWOSPACE, just like .IP doesn't either. * In literal mode, clear NOLPAD after each line, or subsequent lines would get no indentation whatsoever. Affecting only -Thtml: * Only print next-line .TP children, instead of all but the first. OK kristaps@ on the -Tascii part; and: "Can you work this into man_html.c, too?"
2011-01-04Multiple man(7) .IP and .TP fixes started during p2k10:Ingo Schwarze
Affecting both -Tascii and -Thtml: * The .IP HEAD uses the second argument as the width, not the last one. * Only print the first .IP HEAD argument, not all but the last. Affecting only -Tascii: * The .IP and .TP HEADs must be printed without literal mode, but literal mode must be restored afterwards. * After the .IP and .TP bodies, we only want term_newln(), not term_flushln(), or we would get two blank lines in literal mode. * The .TP HEAD does not use TWOSPACE, just like .IP doesn't either. * In literal mode, clear NOLPAD after each line, or subsequent lines would get no indentation whatsoever. Affecting only -Thtml: * Only print next-line .TP children, instead of all but the first. OK kristaps@ on the -Tascii part; and: "Can you work this into man_html.c, too?"
2011-01-03Unify roff macro argument parsing (in roff.c, roff_userdef()) and man macroIngo Schwarze
argument parsing (in man_argv.c, man_args()), both having different bugs, to use one common macro argument parser (in mandoc.c, mandoc_getarg()), because from the point of view of roff, man macros are just roff macros, hence their arguments are parsed in exactly the same way. While doing so, fix these bugs: * Escaped blanks (i.e. those preceded by an odd number of backslashes) were mishandled as argument separators in unquoted arguments to user-defined roff macros. * Unescaped blanks preceded by an even number of backslashes were not recognized as argument separators in unquoted arguments to man macros. * Escaped backslashes (i.e. pairs of backslashes) were not reduced to single backslashes both in unquoted and quoted arguments both to user-defined roff macros and to man macros. * Escaped quotes (i.e. pairs of quotes inside quoted arguments) were not reduced to single quotes in man macros. OK kristaps@ Note that mdoc macro argument parsing is yet another beast for no good reason and is probably afflicted by similar bugs. But i don't attempt to fix that right now because it is intricately entangled with lots of unrelated high-level mdoc(7) functionality, like delimiter handling and column list phrase handling. Disentagling that would waste too much time now.
2011-01-02more tests of white space handlingIngo Schwarze
2011-01-01test whether the .Fl macro is parsedIngo Schwarze
2011-01-01test handling of zero-length user-defined stringsIngo Schwarze
2011-01-01also test .Pp in literal contextIngo Schwarze
2011-01-01also test .Mt without argumentsIngo Schwarze
2010-12-19Handle .Bk the same way as groff 1.20.1:Ingo Schwarze
.Bk without arguments defaults to -words. .Bk with invalid arguments (including -lines) has no effect. ok kristaps@
2010-12-09Abort endless loops during roff macro and string expansion.Ingo Schwarze
For now, use the simplest conceivable approach, like groff does: Just a fixed, ugly input stack limit. Kristaps@ agrees.
2010-12-09Roff only interpolates \* strings when the leading backslash is not escaped.Ingo Schwarze
Kristaps@ agrees with the idea, even though he didn't review the final patch.
2010-12-04add a few simple tests found in my treeIngo Schwarze
2010-12-04Now that we don't have groff in base any longer, check in the desired output,Ingo Schwarze
such that the regression suite does not depend on ports.
2010-07-01more updatesIngo Schwarze
2010-07-01major update of the mandoc test suite:Ingo Schwarze
* add various new and extend a few existing tests * stop using Mdocdate to ease syncing with NetBSD
2010-06-27add the groff target to the 'make depend' step, so we build dependencies.Peter Hessler
while here, fix building the groff built pages OK schwarze@
2010-06-06also test .In following .In and .Ft following .FnIngo Schwarze
2010-04-25Test handling of roff conditional instructions;Ingo Schwarze
committing the desired results, too, because groff is doing page-layout formatting for man(7) even in ASCII output mode and we do not imitate that in mandoc.
2010-04-25Let the clean target remove cores,Ingo Schwarze
and let the cleandir target call groff-clean as well.
2010-04-23Update test to also check that .Xr without args is ignored.Ingo Schwarze
Related to mdoc_validate.c 1.47.
2010-04-23Check handling of tab characters.Ingo Schwarze
Related to term.c 1.30, mdoc_term.c 1.75.
2010-04-23Do not run the tests with -fstrict -Wall by default.Ingo Schwarze
I want to test some features that -fstrict does not allow. And as long as i do not test for specific error messages, having -Wall on by default just causes useless noise.
2010-04-13test handling of multiple .It macros without intervening text;Ingo Schwarze
related to term.c 1.29
2010-04-12check handling of blank lines in literal context;Ingo Schwarze
thanks to jmc@ for noticing that this can break; related to term.c rev. 1.28
2010-04-12new test to check vertical spacing in nested lists,Ingo Schwarze
related to mdoc_term.c rev. 1.74
2010-04-08Check the behaviour of quoted and unquoted punctuationIngo Schwarze
after the mdoc(7) literal macro, .Li.
2010-04-07Make sure that the sequence .Fl, no argument, and another macroIngo Schwarze
is rendered without white space between the dash and the other macro. Will be fixed in mandoc 1.9.23.
2010-02-17regression test for .Xr argument handling;Ingo Schwarze
related code fix coming tomorrow kristaps@ agrees this is the behaviour we want
2010-01-02Check that end of .It does not restore .Sm stateIngo Schwarze
to the value it had before entering .It; fixed by kristaps@ in release 1.9.15.
2010-01-01When a .Fl macro without an argument is followed by text,Ingo Schwarze
the space after the dash appears to be missing. Needs fixing. Test triggered in a discussion with kristaps@.