summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index a515ac6..fe0a8a1 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -1199,6 +1199,11 @@ class LoreMessage:
parts = body.split('\n---\n', 1)
if len(parts) == 2:
basement = parts[1].rstrip('\n')
+ elif body.find('\ndiff ') >= 0:
+ parts = body.split('\ndiff ', 1)
+ if len(parts) == 2:
+ parts[1] = 'diff ' + parts[1]
+ basement = parts[1].rstrip('\n')
mbody = parts[0].strip('\n')