htmlroff: fix wrong newline in \name handling (| -> ||)

This commit is contained in:
cinap_lenrek 2015-06-13 20:58:56 +02:00
parent 453ca8db43
commit 7f4b037b0b

View file

@ -340,7 +340,7 @@ getname(void)
cc = getnext(); cc = getnext();
if(c < 0 || cc < 0) if(c < 0 || cc < 0)
return L(""); return L("");
if(c == '\n' | cc == '\n'){ if(c == '\n' || cc == '\n'){
warn("newline in \\n"); warn("newline in \\n");
ungetnext(cc); ungetnext(cc);
if(c == '\n') if(c == '\n')