From 325113fc7792d4fd73aeea08a7f6b50361c4cb5a Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 29 Jun 2019 20:10:51 -0400 Subject: write_fbcon(): Improve comments and fix undefined $_ error --- (limited to 'bin/bdf2fbcon') diff --git a/bin/bdf2fbcon b/bin/bdf2fbcon index f602aba..e6cda04 100755 --- a/bin/bdf2fbcon +++ b/bin/bdf2fbcon @@ -203,10 +203,11 @@ sub write_fbcon } } + $output_fh->printf("/*\n"); foreach (@{$font->{'comments'}}) { - $output_fh->printf("/* %s */\n", $_); + $output_fh->printf(" * %s\n", ($_ or '')); } - $output_fh->printf("/* Generated by bdf2fbcon */\n\n"); + $output_fh->printf(" * Generated by bdf2fbcon\n */\n\n"); $output_fh->printf("#include \n\n"); $output_fh->printf("#define FONTDATAMAX %d\n\n", $bytes_x * $font->{'height'} * 256); -- cgit v0.9.1