summaryrefslogtreecommitdiffstats
path: root/save-html.c
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2014-07-16 14:38:20 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-25 07:14:04 -0700
commitc7cefd421cdf94c964c429a5c59824f8987af6c9 (patch)
tree77e585433a8bdf8c67a4c575a210686bf5ebae5d /save-html.c
parentcccf05ee7b8de7d4698e84505fcbb3285018a781 (diff)
downloadsubsurface-c7cefd421cdf94c964c429a5c59824f8987af6c9.tar.gz
HTML: don't add photos or dive status if exporting list only
If export list only option is chosen, photos and dive status must not be added to the export. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-html.c')
-rw-r--r--save-html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/save-html.c b/save-html.c
index 324d543fb..f6b9a50e0 100644
--- a/save-html.c
+++ b/save-html.c
@@ -191,14 +191,14 @@ void write_one_dive(struct membuffer *b, struct dive *dive, const char *photos_d
write_attribute(b, "buddy", dive->buddy);
write_attribute(b, "divemaster", dive->divemaster);
write_attribute(b, "suit", dive->suit);
- write_dive_status(b, dive);
- save_photos(b, photos_dir, dive);
put_HTML_tags(b, dive, "\"tags\":", ",");
put_HTML_notes(b, dive, "\"notes\":\"", "\",");
if (!list_only) {
put_cylinder_HTML(b, dive);
put_HTML_samples(b, dive);
put_HTML_bookmarks(b, dive);
+ write_dive_status(b, dive);
+ save_photos(b, photos_dir, dive);
}
put_string(b, "},\n");
(*dive_no)++;