Add debug capability to planner notes

The output it spits out can be copy-pasted into a html validator like:
https://validator.w3.org/nu/#textarea

Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
Anton Lundin 2019-08-28 10:13:10 +02:00 committed by Dirk Hohndel
parent 00c902d66c
commit 9935343ba1

View file

@ -616,4 +616,7 @@ finished:
mb_cstring(&buf);
free(dive->notes);
dive->notes = detach_buffer(&buf);
#ifdef DEBUG_PLANNER_NOTES
printf("<!DOCTYPE html>\n<html>\n\t<head><title>plannernotes</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/></head>\n\t<body>\n%s\t</body>\n</html>\n", dive->notes);
#endif
}