mirror of
				https://github.com/netwide-assembler/nasm.git
				synced 2025-10-10 00:25:06 -04:00 
			
		
		
		
	Fix bug where the WinHelp backend corrupts the internal data
WinHelp/RTF needs to convert \ to \\, but did so on the global data, so the DIP output was corrupted.
This commit is contained in:
		| @@ -1280,11 +1280,12 @@ sub write_hlp { | |||||||
|       # Code paragraph. |       # Code paragraph. | ||||||
|       print "\\keep\\f1\\sb120\n"; |       print "\\keep\\f1\\sb120\n"; | ||||||
|       foreach $i (@$pname) { |       foreach $i (@$pname) { | ||||||
|  | 	my $x = $i; | ||||||
|         warn "code line longer than 68 chars: $i\n" if length $i > 68; |         warn "code line longer than 68 chars: $i\n" if length $i > 68; | ||||||
| 	$i =~ s/\\/\\\\/g; | 	$x =~ s/\\/\\\\/g; | ||||||
| 	$i =~ s/\{/\\\{/g; | 	$x =~ s/\{/\\\{/g; | ||||||
| 	$i =~ s/\}/\\\}/g; | 	$x =~ s/\}/\\\}/g; | ||||||
|         print "$i\\par\\sb0\n"; |         print "$x\\par\\sb0\n"; | ||||||
|       } |       } | ||||||
|       $newpar = "\\pard\\f0\\sb120\n"; |       $newpar = "\\pard\\f0\\sb120\n"; | ||||||
|     } elsif ($ptype eq "bull" || $ptype eq "norm") { |     } elsif ($ptype eq "bull" || $ptype eq "norm") { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user