Opened 15 years ago
Closed 15 years ago
#336 closed defect (fixed)
graphToEps() generates bad .eps header
Reported by: | Alpar Juttner | Owned by: | Alpar Juttner |
---|---|---|---|
Priority: | major | Milestone: | LEMON 1.2 release |
Component: | core | Version: | hg main |
Keywords: | Cc: | tapolcai@… | |
Revision id: | f903263902f6 |
Description
The .eps
header generated by 'graphToEps()' contains an empty line after the %%CreationDate:
DSC field, at least on linux. This confuses some .eps
tools, such as gv.
%!PS-Adobe-2.0 EPSF-2.0 %%Title: Sample .eps figure %%Copyright: (C) 2003-2009 LEMON Project %%Creator: LEMON, graphToEps() %%CreationDate: Thu Jan 21 13:14:18 2010 %%BoundingBox: 485 485 865 715 %%EndComments
Attachments (1)
Change History (8)
comment:1 Changed 15 years ago by
Summary: | graphToEps() generated bad .eps header → graphToEps() generates bad .eps header |
---|
comment:2 Changed 15 years ago by
comment:4 Changed 15 years ago by
Status: | new → assigned |
---|
Changed 15 years ago by
Attachment: | 6e919f777fdb.patch added |
---|
comment:5 follow-up: 6 Changed 15 years ago by
Cc: | tapolcai@… added |
---|
[6e919f777fdb] is a fix for this issue. Could anyone check it on Windows (both with mingw and with Visual Studio).
comment:6 follow-up: 7 Changed 15 years ago by
Replying to alpar:
[6e919f777fdb] is a fix for this issue. Could anyone check it on Windows (both with mingw and with Visual Studio).
It works fine on windows (both with mingw and VS2008).
comment:7 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Replying to kpeter:
Replying to alpar:
[6e919f777fdb] is a fix for this issue. Could anyone check it on Windows (both with mingw and with Visual Studio).
It works fine on windows (both with mingw and VS2008).
Thanks. It has been rebased as [f58e01094738] and merged to branches 1.0, 1.1 and main.
This is the code snippet responsible for printing the
%%CreationDate:
linefrom this it looks like
ctime_r()
printed the extra newline, which is a bit weird.Could someone check whether or not the output of
graph_to_eps_demo()
is correct on windows?