mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
Add test for multiline entries with tags
This commit is contained in:
parent
99426cecd2
commit
b6f6b290e3
3 changed files with 39 additions and 0 deletions
|
@ -26,6 +26,21 @@ Feature: Basic reading and writing to a journal
|
||||||
| There is a blank line above this.
|
| There is a blank line above this.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Scenario: Printing a journal that has multiline entries with tags
|
||||||
|
Given we use the config "multiline-tags.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 with @tags.
|
||||||
|
| Tag with @punctuation. afterwards
|
||||||
|
| @TagOnLineAloneWithOutPunctuation
|
||||||
|
| @TagOnLineAloneWithPunctuation.
|
||||||
|
| Text before @tag. And After.
|
||||||
|
| @hi. Hello
|
||||||
|
| hi Hello
|
||||||
|
"""
|
||||||
|
|
||||||
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-tags.yaml
Normal file
17
features/data/configs/multiline-tags.yaml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
default_hour: 9
|
||||||
|
default_minute: 0
|
||||||
|
editor: ""
|
||||||
|
encrypt: false
|
||||||
|
highlight: true
|
||||||
|
journals:
|
||||||
|
default: features/journals/multiline-tags.journal
|
||||||
|
linewrap: 80
|
||||||
|
tagsymbols: "@"
|
||||||
|
template: false
|
||||||
|
timeformat: "%Y-%m-%d %H:%M"
|
||||||
|
indent_character: "|"
|
||||||
|
colors:
|
||||||
|
date: none
|
||||||
|
title: none
|
||||||
|
body: none
|
||||||
|
tags: none
|
7
features/data/journals/multiline-tags.journal
Normal file
7
features/data/journals/multiline-tags.journal
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[2013-06-09 15:39] Multiple @line entry with @tags.
|
||||||
|
Tag with @punctuation. afterwards
|
||||||
|
@TagOnLineAloneWithOutPunctuation
|
||||||
|
@TagOnLineAloneWithPunctuation.
|
||||||
|
Text before @tag. And After.
|
||||||
|
@hi. Hello
|
||||||
|
hi Hello
|
Loading…
Add table
Reference in a new issue