Csound Csound-dev Csound-tekno Search About

[Cs-dev] Manual Quickref: Lots of errors

Date2011-11-01 22:41
FromSteven Yi
Subject[Cs-dev] Manual Quickref: Lots of errors
Hi All,

I was working on regenerating the opcode list from the manual for blue
(I use a slightly modified script) and noticed there were alot of
entries that do not parse. I changed the quickref.py to use:


    try:
        xmldoc = minidom.parseString(newfile)
    except:
        print '>>> Failed to parse:', filename
        continue

to print out the filename instead of the full contents of the file and
it made it easier to see what files had errors.  Is this a known
issue?

Thanks,
steven

------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-11-01 23:16
FromSteven Yi
SubjectRe: [Cs-dev] Manual Quickref: Lots of errors
Update: I've modified quickref.py to trim off the beginnings of the
contents of the xml files when it reads it in.  There is apparently a
lot of files with strange invisible characters or spaces before the
refentry starts, and that was causing the issue.  The change is
committed to the manual GIT repo.

Thanks!
steven

On Tue, Nov 1, 2011 at 10:41 PM, Steven Yi  wrote:
> Hi All,
>
> I was working on regenerating the opcode list from the manual for blue
> (I use a slightly modified script) and noticed there were alot of
> entries that do not parse. I changed the quickref.py to use:
>
>
>    try:
>        xmldoc = minidom.parseString(newfile)
>    except:
>        print '>>> Failed to parse:', filename
>        continue
>
> to print out the filename instead of the full contents of the file and
> it made it easier to see what files had errors.  Is this a known
> issue?
>
> Thanks,
> steven
>

------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net