tag_autocreate fixups

Fix style of prompt.
Optional to rebuild when it is changed. (Needed to get new all missing tags)
master
Joey Hess 2010-04-17 15:40:39 -04:00
parent ca02c57ee4
commit adc196a8b5
1 changed files with 3 additions and 3 deletions

View File

@ -37,9 +37,9 @@ sub getsetup () {
tag_autocreate => { tag_autocreate => {
type => "boolean", type => "boolean",
example => 0, example => 0,
description => "Autocreate new tag pages", description => "autocreate new tag pages?",
safe => 1, safe => 1,
rebuild => 1, rebuild => undef,
}, },
} }
@ -66,7 +66,7 @@ sub taglink ($$$;@) {
sub gentag ($) { sub gentag ($) {
my $tag=shift; my $tag=shift;
if (defined $config{tag_autocreate} && $config{tag_autocreate}) { if ($config{tag_autocreate}) {
my $tagfile = newpagefile(tagpage($tag), $config{default_pageext}); my $tagfile = newpagefile(tagpage($tag), $config{default_pageext});
$tagfile=~s/^\///; $tagfile=~s/^\///;