From e133e66ac3255a3abf88e0bea5a9177f21a8bf0f Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 16 Feb 2016 17:13:48 +0200 Subject: Handle unicode more consistently --- yarns/020-basic-workflow.yarn | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'yarns/020-basic-workflow.yarn') diff --git a/yarns/020-basic-workflow.yarn b/yarns/020-basic-workflow.yarn index fc1c756..d86ab0b 100644 --- a/yarns/020-basic-workflow.yarn +++ b/yarns/020-basic-workflow.yarn @@ -12,16 +12,19 @@ invoked, because it'd be difficult to control the editor. SCENARIO add a simple note GIVEN an empty journal in SRC AND the time is 2014-11-22 17:30:45 - WHEN I run jt new TITLE + WHEN I run jt new TITLE-TRÖÖT THEN file SRC/drafts/0.mdwn exists - AND file SRC/drafts/0.mdwn matches title="TITLE" + AND file SRC/drafts/0.mdwn matches title="TITLE-TRÖÖT" + +(Note that we use a title with non-ASCII characters to make sure jt +handles that.) This is where the user would normally use their editor to edit the draft, and exit the editor when done. WHEN I run jt finish THEN file SRC/drafts/0.mdwn doesn't exist - AND file SRC/notes/2014/11/22/title.mdwn exists + AND file SRC/notes/2014/11/22/title-tr_t.mdwn exists This is how you create a note, in the simplest case. A more complex case is when there's more than one draft at a time. -- cgit v1.2.1