summaryrefslogtreecommitdiff
path: root/bk_text.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-03-30 19:40:56 +0000
committerSimon Tatham <anakin@pobox.com>2004-03-30 19:40:56 +0000
commit6afc62bad8fc92160adb5301abfb18295001947f (patch)
tree723b4bfee664d9afcdb008625bb57cd5a2d84ab7 /bk_text.c
parent4265ea15b41a4f1ff299932ff55797c7b7641e7f (diff)
downloadhalibut-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_text.c')
-rw-r--r--bk_text.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/bk_text.c b/bk_text.c
index bde11bb..15a4fc0 100644
--- a/bk_text.c
+++ b/bk_text.c
@@ -184,7 +184,6 @@ void text_backend(paragraph *sourceform, keywordlist *keywords,
char *prefixextra;
int nesting, nestindent;
int indentb, indenta;
- int done_copyright;
IGNORE(keywords); /* we don't happen to need this */
IGNORE(idx); /* or this */
@@ -211,7 +210,6 @@ void text_backend(paragraph *sourceform, keywordlist *keywords,
nestindent = conf.listindentbefore + conf.listindentafter;
nesting = (conf.indent_preambles ? 0 : -conf.indent);
- done_copyright = FALSE;
/* Do the main document */
for (p = sourceform; p; p = p->next) switch (p->type) {
@@ -240,7 +238,6 @@ void text_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;
@@ -251,19 +248,6 @@ void text_backend(paragraph *sourceform, keywordlist *keywords,
case para_Chapter:
case para_Appendix:
case para_UnnumberedChapter:
- /*
- * The copyright should come after the preamble but before
- * the first chapter title.
- */
- if (!done_copyright) {
- paragraph *p;
-
- for (p = sourceform; p; p = p->next)
- if (p->type == para_Copyright)
- text_para(fp, NULL, NULL, p->words,
- conf.indent + nesting, 0, conf.width - nesting);
- done_copyright = TRUE;
- }
text_heading(fp, p->kwtext, p->kwtext2, p->words,
conf.achapter, conf.indent, conf.width);
nesting = 0;
@@ -281,6 +265,7 @@ void text_backend(paragraph *sourceform, keywordlist *keywords,
break;
case para_Normal:
+ case para_Copyright:
case para_DescribedThing:
case para_Description:
case para_BiblioCited: