diff --git a/pdf.c b/pdf.c
index 0a1e2a626d945183da662223d357ab1e0452cd8d..ce2d4ed3ea9ed8fcb626da4f554acf82ee804742 100644
--- a/pdf.c
+++ b/pdf.c
@@ -1072,11 +1072,11 @@ ASCIIHexDecode(const Dict *parms, HBytes b, HParser *p)
 	H_ARULE(hupper,	h_ch_range('A', 'F'));
 	H_RULE(ahexeod,	h_ch('>'));
 	H_RULE(hdigit,	CHX(digit, hlower, hupper));
-	H_RULE(hdigitpair, SEQ(OPT(h_many(lwchar)),hdigit,OPT(h_many(lwchar)),hdigit));
-	H_ARULE(ahextruncated, SEQ(hdigit,ahexeod));
+	H_RULE(hdigitpair, SEQ(OPT(h_many(lwchar)), hdigit, OPT(h_many(lwchar)), hdigit));
+	H_ARULE(ahextruncated, SEQ(hdigit, OPT(h_many(lwchar)), ahexeod));
 
 	H_RULE(hs_end, CHX(hdigitpair, ahextruncated));
-	H_RULE(hexstream, SEQ(h_many(hdigitpair),hs_end));
+	H_RULE(hexstream, SEQ(h_many(hdigitpair), hs_end));
 
 	res = h_parse(hexstream, b.token, b.len);
 	if(!res)
@@ -1098,7 +1098,7 @@ ASCII85Decode(const Dict *parms, HBytes b, HParser *p)
 	HParseResult *res;
 	H_RULE(lwchar,	IN(LWCHARS));
 	
-	H_RULE(a85eod, SEQ(h_ch('~'), OPT(h_many(lwchar)), h_ch('>')));
+	H_RULE(a85eod,	SEQ(h_ch('~'), OPT(h_many(lwchar)), h_ch('>')));
 	fprintf(stderr, "ASCII85Decode: not implemented\n");
 	return NULL;
 }