From: David G. <go...@py...> - 2004-11-16 03:49:02
|
[Aleksey Gurtovoy] > The attached tiny path implements the DocInfo transformation for the > ":Authors:" field as per > http://docutils.sourceforge.net/docs/ref/doctree.html#authors, The idea is to turn this: :Authors: :Author: Aleksey Gurtovoy :Organization: MetaCommunications :Contact: agurtovoy -at- meta-comm.com :Author: David Goodger :Contact: your-email-address into this: <docinfo> <authors> <author> Aleksey Gurtovoy <organization> MetaCommunications <contact> agurtovoy -at- meta-comm.com <author> David Goodger <contact> your-email-address The idea is sound. But the patch is too tiny, I'm afraid; it's too loose. It needs some verification code, otherwise invalid doctrees may result. For example, try this input: :Authors: :Organization: this shouldn't come first, Author should :Author: should :Date: today :Status: these fields shouldn't occur at all -- David Goodger <http://python.net/~goodger> |