From 5476214584710727ca0d0b09c992e64fcd259d96 Mon Sep 17 00:00:00 2001 From: STEPHANVS Date: Thu, 8 Jul 2021 10:36:19 +0200 Subject: [PATCH] Support "|" as "barline" in chords layer --- openlp/plugins/songs/lib/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openlp/plugins/songs/lib/__init__.py b/openlp/plugins/songs/lib/__init__.py index 05fc43225..1976d0c8b 100644 --- a/openlp/plugins/songs/lib/__init__.py +++ b/openlp/plugins/songs/lib/__init__.py @@ -646,6 +646,12 @@ def transpose_chord(chord, transpose_value, notation): current_chord = current_chord[1:] else: current_chord = '' + if current_chord and current_chord[0] == '|': + transposed_chord += '|' + if len(current_chord) > 1: + current_chord = current_chord[1:] + else: + current_chord = '' if len(current_chord) > 0: if len(current_chord) > 1: if '#b'.find(current_chord[1]) == -1: