"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "htmldoc/epub.cxx" between
htmldoc-1.9.11-source.tar.gz and htmldoc-1.9.12-source.tar.gz

About: HTMLDOC converts HTML and Markdown source files into indexed HTML, EPUB, PostScript, or PDF files (but doesn’t support CSS).

epub.cxx  (htmldoc-1.9.11-source):epub.cxx  (htmldoc-1.9.12-source)
/* /*
* EPUB exporting functions for HTMLDOC, a HTML document processing program. * EPUB exporting functions for HTMLDOC, a HTML document processing program.
* *
* Copyright 2017-2019 by Michael R Sweet. * Copyright © 2017-2021 by Michael R Sweet.
* *
* This program is free software. Distribution and use rights are outlined in * This program is free software. Distribution and use rights are outlined in
* the file "COPYING". * the file "COPYING".
*/ */
/* /*
* Include necessary headers. * Include necessary headers.
*/ */
#include "htmldoc.h" #include "htmldoc.h"
skipping to change at line 565 skipping to change at line 565
} }
else else
{ {
// Write a "standard" title page with image... // Write a "standard" title page with image...
status |= zipcFilePuts(out, " <div style=\"text-align: center;\">\n"); status |= zipcFilePuts(out, " <div style=\"text-align: center;\">\n");
if (TitleImage[0]) if (TitleImage[0])
{ {
image_t *img = image_load(TitleImage, !OutputColor); image_t *img = image_load(TitleImage, !OutputColor);
status |= write_xhtmlf(out, " <p><img src=\"%s\" width=\"%d\" height= if (img)
\"%d\" alt=\"%s\" /></p>\n", file_basename((char *)TitleImage), img->width, img- status |= write_xhtmlf(out, " <p><img src=\"%s\" width=\"%d\" heigh
>height, title ? title : (uchar *)""); t=\"%d\" alt=\"%s\" /></p>\n", file_basename((char *)TitleImage), img->width, im
g->height, title ? title : (uchar *)"");
} }
if (title != NULL) if (title != NULL)
status |= write_xhtmlf(out, " <h1 style=\"text-align: center;\">%s</h 1>\n", title); status |= write_xhtmlf(out, " <h1 style=\"text-align: center;\">%s</h 1>\n", title);
const char *prefix = " <p>"; const char *prefix = " <p>";
if (docnumber) if (docnumber)
{ {
status |= zipcFilePuts(out, prefix); status |= zipcFilePuts(out, prefix);
skipping to change at line 1430 skipping to change at line 1431
status |= zipcFileWrite(out, start, (size_t)(ptr - start)); status |= zipcFileWrite(out, start, (size_t)(ptr - start));
status |= zipcFilePuts(out, (char *)xhtml_entity(*ptr)); status |= zipcFilePuts(out, (char *)xhtml_entity(*ptr));
start = ptr + 1; start = ptr + 1;
} }
} }
if (ptr > start) if (ptr > start)
status |= zipcFileWrite(out, start, (size_t)(ptr - start)); status |= zipcFileWrite(out, start, (size_t)(ptr - start));
va_end(ap);
return (status); return (status);
} }
 End of changes. 3 change blocks. 
4 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)