It looks like you're new here. If you want to get involved, click one of these buttons!
<<pluralize 2 "hour">> should return "2 hours" <<pluralize 1 "item">> should return "1 item" <<pluralize 3 "antenna" "e">> should return "3 antennae"
<<widget "pluralize">> <<set _num = $args[0]>> <<set _plu = $args[1]>> <<if _num neq 1>> <<if $args[2]>> <<set _plu = _plu + $args[2]>> <<else>> <<set _plu = _plu + "s">> <</if>> <</if> <<= _num>> <<= _plu>> <<endwidget>>
<<set _num += "">>right before it's printed (on the blank line above), it's showing.
Comments
You're also creating excessive numbers of line breaks. I'd suggest something like the following:
Alternatively, if you're not using the _num temporary variable outside of the widget, then you could do the following instead—which does away with it:
I'm using the nobr tag for my widgets-tagged Passage, it should be enough right? Should I add <<silently>> as well?