Fixed indentation in composing part of __main__

This commit is contained in:
Manuel Ebert 2012-04-05 12:05:15 +02:00
parent b2924168a9
commit fe51f33981

View file

@ -210,9 +210,10 @@ if __name__ == "__main__":
if compose: if compose:
if not args.text: if not args.text:
args.text = [raw_input("Compose Entry: ")] args.text = [raw_input("Compose Entry: ")]
raw = " ".join(args.text).strip() raw = " ".join(args.text).strip()
journal.new_entry(raw, args.date) journal.new_entry(raw, args.date)
journal.write() print journal
journal.write()
else: # read mode else: # read mode
journal.filter(tags=args.text, start_date=args.start_date, end_date=args.end_date) journal.filter(tags=args.text, start_date=args.start_date, end_date=args.end_date)