reHackable / maxio

Companion daemon for the reMarkableā„¢ paper tablet
GNU Lesser General Public License v3.0
155 stars 52 forks source link

Some fixes #4

Closed bsvh closed 6 years ago

bsvh commented 6 years ago

The first commit simply removes the ./ from rM2svg. This causes problems when these scripts are symbolically linked to some directory in your $PATH.

The second commit is a fix for when the .pagedata file has empty lines. I noticed this was the case in one of my notebooks, and everything errored out when looking for the filename ".png".

edupont commented 6 years ago

Thanks for the patch. Nice catch.

Can you fix the empty lines issue in .pagedata with a preemptive sed -i -e 's/^[[:blank:]]*$/Blank/' *.pagedata before starting to fetch the necessary template files?

bsvh commented 6 years ago

Ok, I changed it to modify the .pagedata files in the temp folder.

edupont commented 6 years ago

Thanks a lot for the contributions!