diff options
-rw-r--r-- | textproc/par/Makefile | 1 | ||||
-rw-r--r-- | textproc/par/files/patch-par.c | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/textproc/par/Makefile b/textproc/par/Makefile index 6aae4cedd3de..832fb3b09cb5 100644 --- a/textproc/par/Makefile +++ b/textproc/par/Makefile @@ -7,6 +7,7 @@ PORTNAME= par PORTVERSION= 1.52 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= http://www.nicemice.net/par/ DISTNAME= Par${PORTVERSION:S|.||} diff --git a/textproc/par/files/patch-par.c b/textproc/par/files/patch-par.c new file mode 100644 index 000000000000..2bcf4868cec8 --- /dev/null +++ b/textproc/par/files/patch-par.c @@ -0,0 +1,12 @@ +--- par.c.orig Sun Mar 28 16:00:15 2004 ++++ par.c Sun Mar 28 16:04:00 2004 +@@ -403,7 +403,8 @@ + } + continue; + } +- if (isspace(c)) ch = ' '; ++ // Exclude non-breaking space from the class of space chars ++ if (isspace(c) && isascii(c)) ch = ' '; + else blank = 0; + additem(cbuf, &ch, errmsg); + if (*errmsg) goto rlcleanup; |