Remove illegal <pre> from within <option> elements
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Nov 2007 15:27:01 +0000 (15:27 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 8 Nov 2007 15:27:01 +0000 (15:27 +0000)
Describe purpose of script a little more accurately

git-svn-id: svn://svn.open-ils.org/ILS/trunk@8041 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/extras/org_tree_html_options.pl

index a65224d..4aaa8b9 100644 (file)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl
-# turns the orgTree and orgTypes into js files
+# turns the orgTree and orgTypes into a static HTML option list
 
 use OpenSRF::AppSession;
 use OpenSRF::System;
@@ -33,7 +33,7 @@ sub print_option {
        my $name = entityize($node->name);
        my $kids = $node->children;
 
-       print FILE "<option value='$sname'><pre>" . '&#160;&#160;&#160;'x$depth . "</pre>$name</option>\n";
+       print FILE "<option value='$sname'>" . '&#160;&#160;&#160;'x$depth . "$name</option>\n";
        print_option($_) for (@$kids);
 }