~ubuntu-branches/ubuntu/maverick/lire/maverick

« back to all changes in this revision

Viewing changes to all/lib/Lire/ChartType.pm

  • Committer: Bazaar Package Importer
  • Author(s): Joost van Baal
  • Date: 2006-11-02 15:30:00 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20061102153000-343pa15n0rp58m1b
Tags: upstream-2.0.2
ImportĀ upstreamĀ versionĀ 2.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
237
237
=cut
238
238
 
239
239
sub encode_value {
240
 
    return $_[1]{'type'} eq 'name' ? $_[1]{'content'} : $_[1]{'value'};
 
240
    return $_[1]{'type'} eq 'name' ? $_[1]{'content'}
 
241
      : ( $_[1]{'value'} eq 'NaN' ? 'NA' : $_[1]{'value'} );
241
242
}
242
243
 
243
244
# keep perl happy
257
258
 
258
259
=head1 VERSION
259
260
 
260
 
$Id: ChartType.pm,v 1.13 2004/10/08 18:36:43 flacoste Exp $
 
261
$Id: ChartType.pm,v 1.15 2006/07/23 13:16:27 vanbaal Exp $
261
262
 
262
263
=head1 COPYRIGHT
263
264
 
277
278
 
278
279
You should have received a copy of the GNU General Public License
279
280
along with this program (see COPYING); if not, check with
280
 
http://www.gnu.org/copyleft/gpl.html or write to the Free Software
281
 
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
 
281
http://www.gnu.org/copyleft/gpl.html.
282
282
 
283
283
=cut
284
284