mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-07 00:36:13 +02:00
parent
dd81c7dbed
commit
acc754e337
3 changed files with 35 additions and 0 deletions
|
@ -13,6 +13,19 @@ Feature: Basic reading and writing to a journal
|
||||||
| But I'm better.
|
| But I'm better.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Scenario: Printing a journal that has multiline entries
|
||||||
|
Given we use the config "multiline.yaml"
|
||||||
|
When we run "jrnl -n 1"
|
||||||
|
Then we should get no error
|
||||||
|
and the output should be
|
||||||
|
"""
|
||||||
|
2013-06-09 15:39 Multiple line entry.
|
||||||
|
| This is the first line.
|
||||||
|
| This line doesn't have any ending punctuation
|
||||||
|
|
|
||||||
|
| There is a blank line above this.
|
||||||
|
"""
|
||||||
|
|
||||||
Scenario: Writing an entry from command line
|
Scenario: Writing an entry from command line
|
||||||
Given we use the config "basic.yaml"
|
Given we use the config "basic.yaml"
|
||||||
When we run "jrnl 23 july 2013: A cold and stormy day. I ate crisps on the sofa."
|
When we run "jrnl 23 july 2013: A cold and stormy day. I ate crisps on the sofa."
|
||||||
|
|
17
features/data/configs/multiline.yaml
Normal file
17
features/data/configs/multiline.yaml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
default_hour: 9
|
||||||
|
default_minute: 0
|
||||||
|
editor: ""
|
||||||
|
encrypt: false
|
||||||
|
highlight: true
|
||||||
|
journals:
|
||||||
|
default: features/journals/multiline.journal
|
||||||
|
linewrap: 80
|
||||||
|
tagsymbols: "@"
|
||||||
|
template: false
|
||||||
|
timeformat: "%Y-%m-%d %H:%M"
|
||||||
|
indent_character: "|"
|
||||||
|
colors:
|
||||||
|
date: none
|
||||||
|
title: none
|
||||||
|
body: none
|
||||||
|
tags: none
|
5
features/data/journals/multiline.journal
Normal file
5
features/data/journals/multiline.journal
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[2013-06-09 15:39] Multiple line entry.
|
||||||
|
This is the first line.
|
||||||
|
This line doesn't have any ending punctuation
|
||||||
|
|
||||||
|
There is a blank line above this.
|
Loading…
Add table
Add a link
Reference in a new issue