From 8c5c47f2ca5a853c3f329faf31ac6ee72b4e4b36 Mon Sep 17 00:00:00 2001 From: Philip Douglass Date: Fri, 28 Aug 2015 12:19:29 -0400 Subject: [PATCH] =?UTF-8?q?Made=20indent=20character=20configurable.=20Loo?= =?UTF-8?q?ks=20nice=20with=20=E2=94=82=20(BOX=20DRAWINGS=20LIGHT=20VERTIC?= =?UTF-8?q?AL)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jrnl/Entry.py | 5 +++-- jrnl/Journal.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jrnl/Entry.py b/jrnl/Entry.py index b5e1965a..fb85ed0e 100755 --- a/jrnl/Entry.py +++ b/jrnl/Entry.py @@ -50,8 +50,9 @@ class Entry: body = "\n".join([ textwrap.fill(line, self.journal.config['linewrap'], - initial_indent="| ", - subsequent_indent="| ") or "|" + initial_indent=self.journal.config['indent'] + " ", + subsequent_indent=self.journal.config['indent'] + " ") + or self.journal.config['indent'] for line in self.body.rstrip(" \n").splitlines() ]) else: diff --git a/jrnl/Journal.py b/jrnl/Journal.py index 92a6774f..76e618a5 100644 --- a/jrnl/Journal.py +++ b/jrnl/Journal.py @@ -29,6 +29,7 @@ class Journal(object): 'tagsymbols': '@', 'highlight': True, 'linewrap': 80, + 'indent': "|" } self.config.update(kwargs) # Set up date parser