diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-03-30 19:40:56 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-03-30 19:40:56 +0000 |
| commit | 6afc62bad8fc92160adb5301abfb18295001947f (patch) | |
| tree | 723b4bfee664d9afcdb008625bb57cd5a2d84ab7 /bk_man.c | |
| parent | 4265ea15b41a4f1ff299932ff55797c7b7641e7f (diff) | |
| download | halibut-6afc62bad8fc92160adb5301abfb18295001947f.zip halibut-6afc62bad8fc92160adb5301abfb18295001947f.tar.gz halibut-6afc62bad8fc92160adb5301abfb18295001947f.tar.bz2 halibut-6afc62bad8fc92160adb5301abfb18295001947f.tar.xz | |
Simplify treatment of the copyright notice, now I've also simplified
the preamble: \copyright paragraphs are now treated identically to
normal paragraphs (so they appear precisely where they're put
instead of in a fixed location), _except_ that the Windows Help
backend also copies their text into the help file's copyright slot.
[originally from svn r4001]
Diffstat (limited to 'bk_man.c')
| -rw-r--r-- | bk_man.c | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -63,7 +63,6 @@ void man_backend(paragraph *sourceform, keywordlist *keywords, paragraph *p; FILE *fp; manconfig conf; - int done_copyright; IGNORE(keywords); /* we don't happen to need this */ IGNORE(idx); /* or this */ @@ -107,8 +106,6 @@ void man_backend(paragraph *sourceform, keywordlist *keywords, fprintf(fp, ".UC\n"); - done_copyright = FALSE; - for (p = sourceform; p; p = p->next) switch (p->type) { /* * Things we ignore because we've already processed them or @@ -118,7 +115,6 @@ void man_backend(paragraph *sourceform, keywordlist *keywords, case para_BR: case para_Biblio: /* only touch BiblioCited */ case para_VersionID: - case para_Copyright: case para_NoCite: case para_Title: break; @@ -132,21 +128,6 @@ void man_backend(paragraph *sourceform, keywordlist *keywords, case para_Heading: case para_Subsect: - if (!done_copyright) { - paragraph *p; - - /* - * The copyright comes just before the first chapter - * title. - */ - for (p = sourceform; p; p = p->next) - if (p->type == para_Copyright) { - fprintf(fp, ".PP\n"); - man_text(fp, p->words, TRUE, 0); - } - done_copyright = TRUE; - } - { int depth; if (p->type == para_Subsect) @@ -179,6 +160,7 @@ void man_backend(paragraph *sourceform, keywordlist *keywords, * Normal paragraphs. */ case para_Normal: + case para_Copyright: fprintf(fp, ".PP\n"); man_text(fp, p->words, TRUE, 0); break; |