diff options
author | wl <wl> | 2006-01-19 16:18:45 +0000 |
---|---|---|
committer | wl <wl> | 2006-01-19 16:18:45 +0000 |
commit | 9557003d564892c7a12b4ede8b452636569c0dbb (patch) | |
tree | d17c0ef12ff54524f43d5ce6e6802f1dd47fe520 /src | |
parent | 4aa515cc0858ad8357f7f77c3eae7a01ded7b82f (diff) | |
download | groff-9557003d564892c7a12b4ede8b452636569c0dbb.tar.gz |
Let `make -k install' install more files.
* Makefile.in (MAKE_K_FLAG): New variable. Use it everywhere where
$(MAKE) and $(MDEFINES) are used.
(CPROGDIRS): Remove $(XPROGDIRS). Treat $(XPROGDIRS) like
$(CPROGDIRS) everywhere.
($(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS)): Don't depend
on $(XPROGDIRS).
($(OTHERDIRS)): Likewise.
* src/devices/grohtml/post-html.cpp (get_html_translation): Remove
failure test for font::name_to_index -- it can never fail.
Diffstat (limited to 'src')
-rw-r--r-- | src/devices/grohtml/post-html.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/devices/grohtml/post-html.cpp b/src/devices/grohtml/post-html.cpp index ce838da1..ad33b03e 100644 --- a/src/devices/grohtml/post-html.cpp +++ b/src/devices/grohtml/post-html.cpp @@ -1,5 +1,5 @@ // -*- C++ -*- -/* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 +/* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 * Free Software Foundation, Inc. * * Gaius Mulley (gaius@glam.ac.uk) wrote post-html.cpp @@ -4305,14 +4305,10 @@ char *get_html_translation (font *f, const string &name) return NULL; else { idx = f->name_to_index((char *)(name + '\0').contents()); - if (idx == 0) { - error("character `%s' not found", (name + '\0').contents()); + if (f->contains(idx)) + return (char *)f->get_special_device_encoding(idx); + else return NULL; - } else - if (f->contains(idx)) - return (char *)f->get_special_device_encoding(idx); - else - return NULL; } } |