On Monday 10 September 2007 05:14:18 Bo Peng wrote:
> -        for line in header + [''] + self.body:
> +        # LyX file format <= 284 does not have a manifest section
> +        if self.format <= 284:
> +            manifest = []
> +        elif self.manifest:
> +            manifest = ['\\begin_manifest'] + self.manifest +
> ['\\end_manifest'] +        else:
> +            manifest = ['\\begin_manifest', '\\end_manifest']
> +
> +        for line in header + [''] + manifest + [''] + self.body:
>              self.output.write(line.encode(self.encoding)+"\n")

Two suggestions:
  - include the manifest in the header. Possibly it can be place before the 
preamble although the order is irrelevant.
  - if there is no manifest there is no need to place an empty manifest. Then 
there is no need to test for the document version.

-- 
José Abílio

Reply via email to