Hi Theodoros:

On Fri, 11 Apr 2008, Theodoropoulos Theodoros wrote:
> I believe i found a small but annoying bug in Template Editor, ONLY
> for xsl files.
>
> Steps to reproduce:
> When one uses the template editor (from Manage Format Templates) with
> an xsl template [ie. the default RSS (XSL)], makes a minor change,
> saves the changes and then uses the '0. close editor' choice from the
> invenio menu, the following TWO lines get appended to the *beginning*
> of the xsl file (outside the <?xml ...> tag), making invenio throw a
> mod_python parse error afterwards.
> <name>RSS</name>
> <description></description>
>
> Notice that in these lines, the description is empty, although the
> name is completed. Those two lines also exist inside the <?xml ...>
> tag in the proper place.
>
> I believe this is a behavior that sources from the handling of the
> .bft files, and should easily be corrected for .xsl files by
> ie. checking the extension of the file when the '0. Close Editor' link
> is clicked and making no additional changes to the file upon exit.
>
> Can you verify and reproduce the problem?

Fixed in CVS, thanks for reporting the problem!

Best regards
-- 
Tibor Simko ** CERN Document Server ** <http://cds.cern.ch/>

Reply via email to