diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 14:02:16 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 14:02:16 +0000 |
commit | ba06c2d6a37dc081a3a8c5a01426a0a009428ca9 (patch) | |
tree | 7b1cdea9a21ff4ed307e29514e9d8286d9d83dfa /print/html2latex/files/patch-add-comment | |
parent | Stage, and pull the patches into a sed command. (diff) |
Rename p*/ patch-xy patches to reflect the files they modify.
Diffstat (limited to 'print/html2latex/files/patch-add-comment')
-rw-r--r-- | print/html2latex/files/patch-add-comment | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/print/html2latex/files/patch-add-comment b/print/html2latex/files/patch-add-comment new file mode 100644 index 000000000000..e415b2d269f3 --- /dev/null +++ b/print/html2latex/files/patch-add-comment @@ -0,0 +1,60 @@ +diff -u ../html2latex-0.9c.old/HTMLparse.c ./HTMLparse.c +--- ../html2latex-0.9c.old/HTMLparse.c Fri Mar 19 04:52:24 1993 ++++ ./HTMLparse.c Fri Mar 29 16:36:35 1996 +@@ -67,7 +67,8 @@ + "title", "h1", "h2", "h3", "h4", "h5", "h6", "a", "p", "address", + "xmp", "ul", "li", "dl", "dt", "dd", "pre", "plaintext", "listing", + "isindex", "menu", "dir", "img", "ol", "em", "tt", "b", "i", "u", +- "strong", "code", "samp", "kbd", "var", "dfn", "cite", "gnat" ++ "strong", "code", "samp", "kbd", "var", "dfn", "cite", "gnat", ++ "!" + }; + + /* +@@ -454,7 +455,8 @@ + { + if (*ptr == '<') + { +- if (isalpha((int)(*(ptr + 1)))) ++ if (isalpha((int)(*(ptr + 1))) || ++ *(ptr + 1) == '!') + { + break; + } +diff -u ../html2latex-0.9c.old/HTMLparse.h ./HTMLparse.h +--- ../html2latex-0.9c.old/HTMLparse.h Fri Mar 19 04:43:34 1993 ++++ ./HTMLparse.h Fri Mar 29 16:25:48 1996 +@@ -52,7 +52,7 @@ + M_DESC_TITLE, M_DESC_TEXT, M_PREFORMAT, M_PLAIN_FILE, M_LISTING_TEXT, + M_INDEX, M_MENU, M_DIRECTORY, M_IMAGE, M_NUM_LIST, M_EM, + M_TT, M_B, M_I, M_U, M_STRONG, M_CODE, M_SAMP, M_KBD, M_VAR, M_DFN, +- M_CITE, M_SENTINEL ++ M_CITE, M_SENTINEL, M_COMMENT + } mark_t; + + /* amperstand escapes */ +diff -u ../html2latex-0.9c.old/html2latex.c ./html2latex.c +--- ../html2latex-0.9c.old/html2latex.c Wed Jun 16 05:55:10 1993 ++++ ./html2latex.c Fri Mar 29 16:41:17 1996 +@@ -9,7 +9,13 @@ + #include "HTMLparse.h" + #include <stdio.h> + #include <stdlib.h> ++#if NEED_GETOPT_H + #include <getopt.h> ++#else ++#if defined(__FreeBSD__) && __FreeBSD__ >= 3 ++#include <unistd.h> ++#endif ++#endif + #include <ctype.h> + #include <string.h> + +@@ -339,6 +341,7 @@ + if (!mptr) + current = temp_s; + break; ++ case M_COMMENT: + default: + /* ignore things we know not wot of */ + break; |