I had a form that was being generated with CGI::FormBuilder that was one field: a group of radio buttons. CGI::FormBuilder put the radio buttons all on one line. Each radio button was followed by a corresponding label. To get them nicely linebreaked, I used JQuery like this:
<script>
$("label").after('<br />');
</script>
... in the template, straight after where I insert the field. JQuery is fantastic.
If you need to hack around with javascript on the command line, download Mozilla's Rhino.
Once unzipped, run it like this:
$ java -jar js.jar
Rhino 1.7 release 1 2008 03 06
js> ["vim", "vision"].join(" & ")
vim & vision
Django Python 960.gs Git Vim NetBSD Nginx
The author is a software engineer living in Australia. He sux at guitar, loves camping, doesn't like cake, does like coffee and is a lazy home brewer.
Help
Latest entries
*BSD Agile Apache Apple Athletics Beer Best-Practice Censorship Comedy Cool Crosswords Deployment Django English Exim Firefox Git Hardcore Health Interface irssi Javascript Jira Languages Linux Makefile Markdown Mathematics Mobile Broadband MySQL NetBSD nginx Nokia OSX Perl Photo Privacy Python Rant Requirements rsync Ruby Shell Slackware SQL SQLite SSH Standards Subversion Testing ThisBlog Vim VMWare (Fusion) VPN WDTEM X Yum zsh
Perldoc Output
Yum
Possum
Git's Index
Jira Project Keys
The Coffee Shop
Git GUI
It is more important...
Questioning Unix (and Other) File Times
The Frog King Photo
Rain Cloud Photo
rsync
Timezone
utf8 in your Perl
Theatre Ceiling Photo
Some problems are so complex...
Colours in your PAGER
zsh vared
zsh magic-equals and double-star
Funny Tweets
ChoppingBoard, Project365, RageQuit