aboutsummaryrefslogtreecommitdiff
path: root/misc/alevt
diff options
context:
space:
mode:
authorRoger Hardiman <roger@FreeBSD.org>2000-10-18 08:09:09 +0000
committerRoger Hardiman <roger@FreeBSD.org>2000-10-18 08:09:09 +0000
commit036e9ea04fbc98c9e5adcb5f8c71dba7d5a74646 (patch)
tree38d3af5c811fdc79a519239dec7f7b7709ab028f /misc/alevt
parented7d5a893922cbc95da4e7dcc39017e38a090667 (diff)
downloadports-036e9ea04fbc98c9e5adcb5f8c71dba7d5a74646.tar.gz
ports-036e9ea04fbc98c9e5adcb5f8c71dba7d5a74646.zip
Apply my patch to fix a html formatting bug
Notes
Notes: svn path=/head/; revision=33956
Diffstat (limited to 'misc/alevt')
-rw-r--r--misc/alevt/files/patch-ab19
1 files changed, 16 insertions, 3 deletions
diff --git a/misc/alevt/files/patch-ab b/misc/alevt/files/patch-ab
index 927a2aac2c9b..c23be7e251df 100644
--- a/misc/alevt/files/patch-ab
+++ b/misc/alevt/files/patch-ab
@@ -1,5 +1,5 @@
---- exp-html.c.old Tue Oct 17 21:28:40 2000
-+++ exp-html.c Tue Oct 17 21:28:30 2000
+--- exp-html.c.orig Tue May 30 02:09:15 2000
++++ exp-html.c Wed Oct 18 08:50:59 2000
@@ -214,7 +214,7 @@
{
if (last_space)
@@ -18,4 +18,17 @@
last_space=0;
nbsp=1;
}
-
+@@ -268,7 +268,12 @@
+ {
+ //if previous nbsp --> put semicolon!!!
+ if (nbsp) fputc(';',fp);
+- fputc(pg->data[y][z].ch,fp);
++
++ // Handle ascii characters which have HTML meanings
++ if (pg->data[y][z].ch == '<') fprintf(fp,"&lt;");
++ else if (pg->data[y][z].ch == '>') fprintf(fp,"&gt;");
++ else if (pg->data[y][z].ch == '&') fprintf(fp,"&amp;");
++ else fputc(pg->data[y][z].ch,fp);
+ last_space=0;
+ nbsp=0;
+ }