From ece51b6223d9adef6750979dd16e40d033d8e30e Mon Sep 17 00:00:00 2001 From: Michael Sweet Date: Thu, 6 Apr 2017 15:50:28 -0400 Subject: [PATCH] Include author and copyright in "standard" header. --- mxmldoc.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/mxmldoc.c b/mxmldoc.c index 0daffd1..e672e5b 100644 --- a/mxmldoc.c +++ b/mxmldoc.c @@ -3467,6 +3467,20 @@ write_epub(const char *epubfile, /* I - EPUB file (output) */ fputs("

", fp); write_string(fp, title, OUTPUT_EPUB); fputs("

\n", fp); + + if (author) + { + fputs("

", fp); + write_string(fp, author, OUTPUT_EPUB); + fputs("

\n", fp); + } + + if (copyright) + { + fputs("

", fp); + write_string(fp, copyright, OUTPUT_EPUB); + fputs("

\n", fp); + } } /* @@ -4257,6 +4271,20 @@ write_html(const char *framefile, /* I - Framed HTML basename */ fputs("

", out); write_string(out, title, OUTPUT_HTML); fputs("

\n", out); + + if (author) + { + fputs("

", out); + write_string(out, author, OUTPUT_EPUB); + fputs("

\n", out); + } + + if (copyright) + { + fputs("

", out); + write_string(out, copyright, OUTPUT_EPUB); + fputs("

\n", out); + } } /*