Updation Script Trouble...

From: Date: Mon, 16 Jan 2006 12:25:13 +0000
Subject: Updation Script Trouble...
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1762@lists.php.net to get a copy of this message
Hello All, I've made an script that uses reflection to add methods that are not mentioned in the docs, so that people atleast know such a method exists and is implemented. I can also extend the script to delete methods not implemented and add parameters to methods have none mentioned and also add constructors that have been implemented, remove those that haven't. All that sounds great , and I've a learned a lot too. But there's a small problem that's bugging me. The script updates the xml file properly and all but I don't know how I can indent everything properly. For example, this is a small snippet of what the script appended to the xml file: <method id="gtk.gtkoldeditable.method.copy_clipboard"> <funcsynopsis> <funcprototype> <funcdef> <function>copy_clipboard</function></funcdef><paramdef>void</paramdef></funcprototype></funcsynopsis><shortdesc> </shortdesc><desc> </desc></method><method id="gtk.gtkoldeditable.method.cut_clipboard"> <funcsynopsis> <funcprototype> <funcdef> ...and so on... As you can see, the indenting is all proper for opening tags. But whenever a closing tag occurs, it screws up the indenting. I'm using the PHP DOM extension do do all the writing to the XML file, and I can control indenting whenever a tag opens but not when it closes. My Question: Are we fussy about the indenting? The manual will build fine, the html will output fine, but the source xml (for all new methods added) will be badly formatted (as shown above). My counter argument is that a human is going to add descriptions anyway to these methods, and that person can perform the indentation manually. Is it really neccessary to put the extra effort to correct the indentation? The important thing is that the manual reflects what methods are implemented and what are not, though not in a very neat manner. Note that the script does not touch anything that has already been properly defined by a human. Your takes on this are welcome! Cheers, -- Anant Narayanan ------------------------- Find Freedom! http://www.kix.in/

« previous php.gtk.doc (#1762) next »