Skip to contentSkip to conversation

fixupdiff: reverse add/del for code snippets

PATCH New Michael S. Tsirkin 1 participant 1 message Apr 20, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixupdiff: reverse add/del for code snippets

Turns out added/deleted versions for code snippets were reversed and no one noticed. Fix it up.

---
 fixupdiff.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fixupdiff.pl +2 -2
index e7d3a0f..1c6b8e2 100644
@@ -40,9 +40,9 @@ while (<>) {
 			#also at beginning of line
 			$line =~ s/^(\^)/\\$1/g;
 			if ($add) {
-				$line =~ s/(.*)/\$\\DIFdel\{$1\}\$/;
-			} else {
 				$line =~ s/(.*)/\$\\DIFadd\{$1\}\$/;
+			} else {
+				$line =~ s/(.*)/\$\\DIFdel\{$1\}\$/;
 			}
 		}
 		#print "%FIXED BY RULE 1\n";
Signature · 7 lines
MST


---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that 
generates this mail.  Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php