Skip to content

Commit e97199f

Browse files
committed
moved header fix to a common place
1 parent 1f785a7 commit e97199f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

x86/x86spec/parse.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,8 @@ var fixHeading = strings.NewReplacer(
628628
"Compat/\nLeg Mode*", "Compat/Leg Mode",
629629
"Compat/\nLeg Mode", "Compat/Leg Mode",
630630
"Compat/ *\nLeg Mode", "Compat/Leg Mode",
631+
632+
"\n", " ",
631633
)
632634

633635
func halfMissing(x []string) bool {
@@ -791,7 +793,7 @@ func processListing(p *listing, insts *[]*instruction) {
791793
for i, hdr := range heading {
792794
x := row[i]
793795
x = strings.Replace(x, "\n", " ", -1)
794-
switch strings.Replace(strings.TrimSpace(hdr), "\n", " ", -1) {
796+
switch strings.TrimSpace(hdr) {
795797
default:
796798
wrong = "unexpected header: " + strconv.Quote(hdr)
797799
goto BadTable

0 commit comments

Comments
 (0)