diff options
author | Anton Lundin <glance@acc.umu.se> | 2019-08-28 10:13:10 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-09-11 17:21:50 +0100 |
commit | 9935343ba19c50973dc608be620fbab4350799e4 (patch) | |
tree | b4561dafdf5d4d83289140e5fe0143b9ca345577 | |
parent | 00c902d66ca114836846132ba775e51e8003ab56 (diff) | |
download | subsurface-9935343ba19c50973dc608be620fbab4350799e4.tar.gz |
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>
-rw-r--r-- | core/plannernotes.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/plannernotes.c b/core/plannernotes.c index 3ce2b6c65..200f6afa1 100644 --- a/core/plannernotes.c +++ b/core/plannernotes.c @@ -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 } |