strip more extensions for bookmark names.

Thu, 20 Mar 2003 08:26:18 +0000

author
eric
date
Thu, 20 Mar 2003 08:26:18 +0000
changeset 149
460c336ec8d7
parent 148
d4a6e303703a
child 150
17531d20e477

strip more extensions for bookmark names.

tumble.c file | annotate | diff | revisions
     1.1 --- a/tumble.c	Thu Mar 20 08:20:52 2003 +0000
     1.2 +++ b/tumble.c	Thu Mar 20 08:26:18 2003 +0000
     1.3 @@ -2,7 +2,7 @@
     1.4   * tumble: build a PDF file from image files
     1.5   *
     1.6   * Main program
     1.7 - * $Id: tumble.c,v 1.38 2003/03/19 22:54:07 eric Exp $
     1.8 + * $Id: tumble.c,v 1.39 2003/03/20 00:26:18 eric Exp $
     1.9   * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
    1.10   *
    1.11   * This program is free software; you can redistribute it and/or modify
    1.12 @@ -225,7 +225,9 @@
    1.13  
    1.14    p = strrchr (in_fn, '.');
    1.15    if (p && ((strcasecmp (p, ".tif") == 0) ||
    1.16 -	    (strcasecmp (p, ".tiff") == 0)))
    1.17 +	    (strcasecmp (p, ".tiff") == 0) ||
    1.18 +	    (strcasecmp (p, ".jpg") == 0) ||
    1.19 +	    (strcasecmp (p, ".jpeg") == 0)))
    1.20      return (p - in_fn);
    1.21    return (len);
    1.22  }