mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +02:00
test fixes
This commit is contained in:
parent
a36671d9d3
commit
e46502fb64
1 changed files with 3 additions and 12 deletions
|
@ -20,7 +20,6 @@ import static help.validator.TagProcessor.TagProcessingState.*;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
|
|
||||||
import help.validator.TagProcessor.TagProcessingState;
|
import help.validator.TagProcessor.TagProcessingState;
|
||||||
|
@ -38,15 +37,8 @@ public class HTMLFileParser {
|
||||||
String text;
|
String text;
|
||||||
while ((text = rdr.readLine()) != null) {
|
while ((text = rdr.readLine()) != null) {
|
||||||
Line line = new Line(file, text, rdr.getLineNumber());
|
Line line = new Line(file, text, rdr.getLineNumber());
|
||||||
try {
|
|
||||||
processLine(line, rdr, file, tagProcessor);
|
processLine(line, rdr, file, tagProcessor);
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
|
||||||
String message =
|
|
||||||
"Error parsing HTML at %s:%s.".formatted(file, rdr.getLineNumber());
|
|
||||||
throw new IOException(message, e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tagProcessor.endOfFile();
|
tagProcessor.endOfFile();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -269,9 +261,8 @@ public class HTMLFileParser {
|
||||||
buf = new StringBuffer();
|
buf = new StringBuffer();
|
||||||
buf.append('<');
|
buf.append('<');
|
||||||
buf.append(tagType);
|
buf.append(tagType);
|
||||||
Iterator<String> iter = map.keySet().iterator();
|
for (String element : map.keySet()) {
|
||||||
while (iter.hasNext()) {
|
attr = element;
|
||||||
attr = iter.next();
|
|
||||||
String value = map.get(attr);
|
String value = map.get(attr);
|
||||||
buf.append(' ');
|
buf.append(' ');
|
||||||
buf.append(attr);
|
buf.append(attr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue