/*
* Man page to HTML conversion program.
*
- * Copyright 2007-2010, 2014 by Apple Inc.
+ * Copyright 2007-2017 by Apple Inc.
* Copyright 2004-2006 by Easy Software Products.
*
- * These coded instructions, statements, and computer programs are the
- * property of Apple Inc. and are protected by Federal copyright
- * law. Distribution and use rights are outlined in the file "LICENSE.txt"
- * which should have been included with this file. If this file is
- * file is missing or damaged, see the license at "http://www.cups.org/".
+ * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
*/
/*
float amount = 3.0; /* Indentation */
if (line[3])
- amount = atof(line + 4);
+ amount = (float)atof(line + 4);
fputs(end_fonts[font], outfile);
font = 0;
float amount = 3.0; /* Indentation */
if (line[3])
- amount = atof(line + 4);
+ amount = (float)atof(line + 4);
fputs(end_fonts[font], outfile);
font = 0;
float amount = 3.0; /* Indentation */
if (line[3])
- amount = atof(line + 4);
+ amount = (float)atof(line + 4);
fputs(end_fonts[font], outfile);
font = 0;
lineptr ++;
if (isdigit(*lineptr & 255))
- amount = atof(lineptr);
+ amount = (float)atof(lineptr);
if (newlist && list && strcmp(newlist, list))
{
}
else
{
- if (*s != '\\' && *s == '\"' && *s == '\'' && *s == '-')
+ if (*s != '\\' && *s != '\"' && *s != '\'' && *s != '-')
+ {
fprintf(stderr, "mantohtml: Unrecognized escape \"\\%c\" ignored.\n", *s);
+ html_putc('\\', fp);
+ }
html_putc(*s++, fp);
}