From 0e12692b710f4824236ed2c014ab65a25209634a Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 21 Aug 2023 12:21:35 -0500 Subject: [PATCH] docs: show full context of diff --- examples/sys_path.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/sys_path.py b/examples/sys_path.py index c4ac959..816332c 100644 --- a/examples/sys_path.py +++ b/examples/sys_path.py @@ -22,7 +22,11 @@ print( Syntax( "\n".join( unified_diff( - old_sys_path, sys.path, "pre-viv sys.path", "post-viv sys.path" + old_sys_path, + sys.path, + "pre-viv sys.path", + "post-viv sys.path", + n=max(map(len, (old_sys_path, sys.path))), ) ), "diff",