vfr wrote:
> +def convert_author_id(document):
> +    " Add the author_id to the \\author definition and make sure 0 is not
> used" +    i = 0
> +    j = 1
> +    while True:
> +        i = find_token(document.header, "\\author", i)
> +        if i == -1:
> +            break
> +        
> +        author = document.header[i].split(' ')
> +        name = '\"\"'
> +        if len(author) >= 2:
> +            name = author[1]
> +        email = ''
> +        if len(author) == 3:
> +            email = author[2]              

This doesn't work with
\author "Vincent van Ravesteijn" f...@bar.org
does it?

I suppose the most easy solution is a regexp such as 
re.compile(r'(\\author) (\".*\") (\.*)$')

See my original proposal for revert_author_id.

Jürgen

Reply via email to