Re: [opensource-dev] XUI Cleanup Project

2012-08-05 Thread Kadah
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've added some quick verification code with expat and released the initial version up to bitbucket. https://bitbucket.org/Kadah_Coba/xui_cleanup Usage is pretty easy, lua XUI_Cleanup.lua [input_dir] [outpit_dir] Input and output directories need to

Re: [opensource-dev] XUI Cleanup Project

2012-08-04 Thread Kadah
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/4/2012 5:55 PM, Hitomi Tiponi wrote: > Yes - the formatting on the xui code of the official viewer is > horrific, especially the few files that have been relatively > unchanged since Viewer 1. That was the impression I was getting when I looked

Re: [opensource-dev] XUI Cleanup Project

2012-08-04 Thread Hitomi Tiponi
Yes - the formatting on the xui code of the official viewer is horrific, especially the few files that have been relatively unchanged since Viewer 1. Sadly LL's own standards are so vague that many different styles actually conform to them.  I tried to standardize on my version but gave up and 

Re: [opensource-dev] XUI Cleanup Project

2012-08-03 Thread Richard Nelson
This code is triggered via LLUICtrlFactory::createFromFile() whenever a valid output_node is passed in. There isn't currently any code that triggers that behavior, and there is no real documentation, other than what you can glean from the small number of comments in the source. R. On Fri,

Re: [opensource-dev] XUI Cleanup Project

2012-08-03 Thread Kadah
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/3/2012 3:36 PM, Richard Nelson wrote: > There is already code to round-trip XUI files through the param > block mechanism such that invalid attributes and default values are > dropped and formatting is normalized. That code hasn't been > exercise

Re: [opensource-dev] XUI Cleanup Project

2012-08-03 Thread Richard Nelson
There is already code to round-trip XUI files through the param block mechanism such that invalid attributes and default values are dropped and formatting is normalized. That code hasn't been exercised in a few years, though, so it probably won't run correctly right away, but it does provide

[opensource-dev] XUI Cleanup Project

2012-08-03 Thread Kadah
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This weekend I was working on some XUI files and my OCD (I don't actually have OCD) was getting very frustrated over the random formatting, lack of consistent indentation, trailing whitespace, random/missing newlines and wildly differently sorted argum