From b600dc95a994eadc45df6c196a5ca17d77995f2d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 3 May 2015 21:32:46 +0300 Subject: Join short lines into one longer line --- jt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jt b/jt index defeabd..abccc2c 100755 --- a/jt +++ b/jt @@ -75,9 +75,7 @@ class DraftsDirectory(object): pathname = self.get_draft_pathname(draft_id) with open(pathname) as f: for line in f: - m = re.match( - r'\[\[!meta title="(?P.*)("\]\])$', - line) + m = re.match(r'\[\[!meta title="(?P<title>.*)("\]\])$', line) if m: title = m.group('title') break -- cgit v1.2.1