riuson / lcd-image-converter

Tool to create bitmaps and fonts for embedded applications, v.2
https://lcd-image-converter.riuson.com/
GNU General Public License v3.0
337 stars 80 forks source link

Generated files include extra empty lines #48

Closed antoniovazquezblanco closed 6 years ago

antoniovazquezblanco commented 6 years ago

Generated source code files have empty lines before the header and in between the header and the block_images_table section.

Can they be removed to better fit the templates?

riuson commented 6 years ago

There is no extra spaces. Just remove new line characters from required lines. Change code from

...
#include <stdint.h>
$(end_block_header)

$(start_block_images_table)
#if (0x0$(out_char_code_sim) == 0x0)
...

to

...
#include <stdint.h>$(end_block_header)

$(start_block_images_table)#if (0x0$(out_char_code_sim) == 0x0)
...

Because $(tag) just removed from text, but empty lines are keeped.