summaryrefslogtreecommitdiff
path: root/bin/generate-table-module
diff options
context:
space:
mode:
authorivan <ivan>2008-02-19 09:10:13 +0000
committerivan <ivan>2008-02-19 09:10:13 +0000
commit8481e2c349c713901b98339dc50c9a6709c8b380 (patch)
tree35be93f41e5ff1bb1a5ae54421c7768902aedd1e /bin/generate-table-module
parent289bf747cf887d32f1ea05e3835dd393dee27427 (diff)
fix this to generate more wiki-friendly column list
Diffstat (limited to 'bin/generate-table-module')
-rwxr-xr-xbin/generate-table-module10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/generate-table-module b/bin/generate-table-module
index b3204fa06..509feeded 100755
--- a/bin/generate-table-module
+++ b/bin/generate-table-module
@@ -31,10 +31,12 @@ while (my $line = <SRC>) {
if ( $line =~ /^=item\s+field\s+-\s+description\s*$/ ) {
foreach my $column ( $dbdef_table->columns ) {
- print DEST "=item $column - ";
- print DEST "primary key"
- if $column eq $primary_key;
- print DEST "\n\n";
+ print DEST "=item $column\n\n";
+ if ( $column eq $primary_key ) {
+ print DEST "primary key\n\n";
+ } else {
+ print DEST "$column\n\n";
+ }
}
next;