mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
35 lines
875 B
Plaintext
35 lines
875 B
Plaintext
--- 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)
|
|
{
|
|
- fprintf(fp," ");
|
|
+ fprintf(fp," ");
|
|
last_space=0;
|
|
nbsp=1;
|
|
}
|
|
@@ -251,7 +251,7 @@
|
|
{
|
|
if (last_space)
|
|
{
|
|
- fprintf(fp," ");
|
|
+ fprintf(fp," ");
|
|
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,"<");
|
|
+ else if (pg->data[y][z].ch == '>') fprintf(fp,">");
|
|
+ else if (pg->data[y][z].ch == '&') fprintf(fp,"&");
|
|
+ else fputc(pg->data[y][z].ch,fp);
|
|
last_space=0;
|
|
nbsp=0;
|
|
}
|