projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mhbuild: Avoid a dot on a line on its own
[mmh]
/
uip
/
mhoutsbr.c
diff --git
a/uip/mhoutsbr.c
b/uip/mhoutsbr.c
index
21c2e26
..
ba88319
100644
(file)
--- a/
uip/mhoutsbr.c
+++ b/
uip/mhoutsbr.c
@@
-241,8
+241,16
@@
writeQuoted(CT ct, FILE *out)
break;
default:
break;
default:
- if (*cp < '!' || *cp > '~')
+ if (*cp < '!' || *cp > '~') {
goto three_print;
goto three_print;
+ }
+ if (n == 0 && *cp == '.') {
+ /*
+ ** encode dot at start of line,
+ ** because it could be alone ...
+ */
+ goto three_print;
+ }
putc(*cp, out);
n++;
break;
putc(*cp, out);
n++;
break;