Fix colorization of tags in title and body

This commit is contained in:
Aaron Lichtman 2019-11-06 21:43:00 +01:00
parent 4b934e36eb
commit 94a2b78b6d
No known key found for this signature in database
GPG key ID: 22368077DE9F9903
12 changed files with 83 additions and 29 deletions

View file

@ -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

View file

@ -13,3 +13,5 @@ indent_character: "|"
colors:
date: red
title: green
body: yellow
tags: black

View file

@ -14,3 +14,5 @@ indent_character: "|"
colors:
date: red
title: green
body: yellow
tags: black

View file

@ -13,3 +13,5 @@ indent_character: "|"
colors:
date: not-a-color
title: also-not-a-color
body: still-no-color
tags: me-too

View file

@ -14,3 +14,5 @@ indent_character: "|"
colors:
date: red
title: green
body: yellow
tags: black

View file

@ -14,3 +14,5 @@ indent_character: "|"
colors:
date: red
title: green
body: yellow
tags: black

View file

@ -14,3 +14,5 @@ indent_character: "|"
colors:
date: red
title: green
body: yellow
tags: black

View file

@ -14,3 +14,5 @@ indent_character: "|"
colors:
date: red
title: green
body: yellow
tags: black

View file

@ -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'}"