mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-06 16:26:13 +02:00
Fix colorization of tags in title and body
This commit is contained in:
parent
4b934e36eb
commit
94a2b78b6d
12 changed files with 83 additions and 29 deletions
|
@ -63,7 +63,6 @@ Feature: Basic reading and writing to a journal
|
|||
When we run "jrnl -on 2013-06-10 -s"
|
||||
Then the output should be
|
||||
"""
|
||||
[ERROR: date set to invalid color: not-a-color]
|
||||
[ERROR: title set to invalid color: also-not-a-color]
|
||||
2013-06-10 15:40 Life is good.
|
||||
"""
|
||||
And we should get no error
|
||||
|
|
|
@ -13,3 +13,5 @@ indent_character: "|"
|
|||
colors:
|
||||
date: red
|
||||
title: green
|
||||
body: yellow
|
||||
tags: black
|
||||
|
|
|
@ -14,3 +14,5 @@ indent_character: "|"
|
|||
colors:
|
||||
date: red
|
||||
title: green
|
||||
body: yellow
|
||||
tags: black
|
||||
|
|
|
@ -13,3 +13,5 @@ indent_character: "|"
|
|||
colors:
|
||||
date: not-a-color
|
||||
title: also-not-a-color
|
||||
body: still-no-color
|
||||
tags: me-too
|
||||
|
|
|
@ -14,3 +14,5 @@ indent_character: "|"
|
|||
colors:
|
||||
date: red
|
||||
title: green
|
||||
body: yellow
|
||||
tags: black
|
||||
|
|
|
@ -14,3 +14,5 @@ indent_character: "|"
|
|||
colors:
|
||||
date: red
|
||||
title: green
|
||||
body: yellow
|
||||
tags: black
|
||||
|
|
|
@ -14,3 +14,5 @@ indent_character: "|"
|
|||
colors:
|
||||
date: red
|
||||
title: green
|
||||
body: yellow
|
||||
tags: black
|
||||
|
|
|
@ -14,3 +14,5 @@ indent_character: "|"
|
|||
colors:
|
||||
date: red
|
||||
title: green
|
||||
body: yellow
|
||||
tags: black
|
||||
|
|
|
@ -25,4 +25,4 @@ Feature: Upgrading Journals from 1.x.x to 2.x.x
|
|||
Scenario: Upgrading a config without colors to colors
|
||||
Given we use the config "no_colors.yaml"
|
||||
When we run "jrnl -n 1"
|
||||
Then the config should have "colors" set to "{'date':'red', 'title':'blue'}"
|
||||
Then the config should have "colors" set to "{'date':'none', 'title':'none', 'body':'none', 'tags':'none'}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue