From 15a3736b744c57515fedb214b8b24805ba21c538 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Sat, 18 Apr 2020 23:10:13 -0700 Subject: [PATCH] Fixed documentation error --- README.md | 2 +- osxphotos/__main__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c7a50947..69281bad 100644 --- a/README.md +++ b/README.md @@ -276,7 +276,7 @@ rendered name, use double braces, e.g. '{{' or '}}', thus using You may specify an optional default value to use if the substitution does not contain a value (e.g. the value is null) by specifying the default value after a ',' in the template string: for example, if template is -'{created.year}/{place.address,'NO_ADDRESS'}' but there was no address +'{created.year}/{place.address,NO_ADDRESS}' but there was no address associated with the photo, the resulting output would be: '2020/NO_ADDRESS/photoname.jpg'. If specified, the default value may not contain a brace symbol ('{' or '}'). diff --git a/osxphotos/__main__.py b/osxphotos/__main__.py index d8f4b039..fe0960b8 100644 --- a/osxphotos/__main__.py +++ b/osxphotos/__main__.py @@ -109,7 +109,7 @@ class ExportCommand(click.Command): "You may specify an optional default value to use if the substitution does not contain a value " + "(e.g. the value is null) " + "by specifying the default value after a ',' in the template string: " - + "for example, if template is '{created.year}/{place.address,'NO_ADDRESS'}' " + + "for example, if template is '{created.year}/{place.address,NO_ADDRESS}' " + "but there was no address associated with the photo, the resulting output would be: " + "'2020/NO_ADDRESS/photoname.jpg'. " + "If specified, the default value may not contain a brace symbol ('{' or '}')."