scdoc2mdoc

A fork of scdoc to output mdoc(7)
git clone git://git.sgregoratto.me/scdoc2mdoc
Log | Files | Refs | README | LICENSE

commit 0d47fb3429553feaeb8a7051b4197027a8f780e2
parent 01bbb8cb4538bb23aa152a59d77c8eb2129d41db
Author: Stephen Gregoratto <dev@sgregoratto.me>
Date:   Sun, 16 Jun 2019 20:31:23 +1000

remove printing the preamble

Also remove setting the version number as a macro, as there is no code
that needs it now

Diffstat:
Mmain.c | 19-------------------
1 file changed, 0 insertions(+), 19 deletions(-)

diff --git a/main.c b/main.c @@ -698,24 +698,6 @@ parse_document(struct parser *p) } while (ch != UTF8_INVALID); } -void -output_scdoc_preamble(struct parser *p) -{ - fprintf(p->output, ".\\\" Generated by scdoc " VERSION "\n"); - /* - * Fix weird quotation marks - * http://bugs.debian.org/507673 - * http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html - */ - fprintf(p->output, ".ie \\n(.g .ds Aq \\(aq\n"); - fprintf(p->output, ".el .ds Aq '\n"); - /* Disable hyphenation: */ - roff_macro(p, "nh", NULL); - /* Disable justification: */ - roff_macro(p, "ad l", NULL); - fprintf(p->output, ".\\\" Begin generated content:\n"); -} - int main(int argc, char **argv) { @@ -738,7 +720,6 @@ main(int argc, char **argv) .line = 1, .col = 1 }; - output_scdoc_preamble(&p); parse_preamble(&p); parse_document(&p); return 0;