mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
htmlroff: ignore \X... text; allow delims besides quote
This commit is contained in:
parent
11257e5a43
commit
d3e79f5b61
1 changed files with 9 additions and 3 deletions
|
@ -69,10 +69,16 @@ e_bang(void)
|
||||||
int
|
int
|
||||||
e_X(void)
|
e_X(void)
|
||||||
{
|
{
|
||||||
int c;
|
int c, c1;
|
||||||
|
|
||||||
while((c = getrune()) >= 0 && c != '\'' && c != '\n')
|
c1 = getrune();
|
||||||
outrune(c);
|
if(c1 < 0 || c1 == '\n') {
|
||||||
|
c = c1;
|
||||||
|
c1 = 0;
|
||||||
|
} else {
|
||||||
|
while((c = getrune()) >= 0 && c != c1 && c != '\n')
|
||||||
|
;
|
||||||
|
}
|
||||||
if(c == '\n'){
|
if(c == '\n'){
|
||||||
warn("newline in %CX'...'", backslash);
|
warn("newline in %CX'...'", backslash);
|
||||||
outrune(c);
|
outrune(c);
|
||||||
|
|
Loading…
Reference in a new issue