summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-09-06 11:08:56 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2009-09-06 11:08:56 +0200
commit0956b7efc4bec37fd8483e1fac0b710c66bd42cb (patch)
tree9ba28c7f595ab012391bd585b4ec489494996b0c
parent724d7e41a2d54ec4a23e68622bc1a2926e3d677e (diff)
Revert "Skip nested documents that don't have BeginDocument and EndDocument but have %PS and %%EOF"
This reverts commit d2a3abcc066330f893fa53dee8ad71dbc452d95a. This is causing other bugs (see bug #23456) and it doesn't seem to be fixing anything important.
-rw-r--r--libspectre/ps.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/libspectre/ps.c b/libspectre/ps.c
index 462dc0b..7292b7e 100644
--- a/libspectre/ps.c
+++ b/libspectre/ps.c
@@ -1757,23 +1757,6 @@ static char * readline (fd, enddoseps, lineP, positionP, line_lenP)
}
else
#endif
- if ((line[0] == '%') &&
- positionP && *positionP > enddoseps &&
- (!iscomment(line, "%!PS-AdobeFont") && (iscomment(line,"%!PS") || iscomment(line, "\004%!PS")))) {
- nesting_level=1;
- line = ps_io_fgetchars(fd,-1);
- if (line) *line_lenP += FD_LINE_LEN;
- while (line) {
- if ((line[0] == '%') &&
- (iscomment(line,"%!PS") || iscomment(line, "\004%!PS")))
- nesting_level++;
- else if (IS_COMMENT("EOF"))
- nesting_level--;
- line = ps_io_fgetchars(fd,-1);
- if (line) *line_lenP += FD_LINE_LEN;
- if (nesting_level == 0) break;
- }
- } else
if (!IS_COMMENT("Begin")) {} /* Do nothing */
else if IS_BEGIN("Document:") { /* Skip the EPS without handling its content */
nesting_level=1;