Skip to contentSkip to conversation

tools: make parse_companies.pl more forgiving of weird HTML

PATCH In review Mike Ryan 2 participants 2 messages Mar 19, 2016 – Mar 20, 2016 Bluetooth drivers

lore
Share & tools
lore

Mike Ryan

author
#0 lore raw

PATCH 1/1 tools: make parse_companies.pl more forgiving of weird HTML

Several company identifier lines do not end in a </td> but rather <br/> followed by newline followed by </td>. This dirty hack is more forgiving of HTML weirdnesses in the SIGs company identifiers page.

---
 tools/parse_companies.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/parse_companies.pl +1 -1
index 6dc358e..1746222 100755
@@ -45,7 +45,7 @@ while (<>) {
         $next_is_name = 1;
 
     # next <td> should be company name
-    } elsif ($next_is_name && m|\<td.*\>(.*)\</td\>|) {
+    } elsif ($next_is_name && m|\<td.*\>(.*)\<|) {
         my $name = uri_decode($1);
         $name =~ s/^\s+//g; # kill leading
         $name =~ s/\s+$//g; # and trailing space
Signature · 1 line
2.1.4
maintainer
#1 lore raw

Hi Mike,

Quoted 6 lines

Several company identifier lines do not end in a </td> but rather <br/> followed by newline followed by </td>. This dirty hack is more forgiving of HTML weirdnesses in the SIGs company identifiers page.
---
tools/parse_companies.pl | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

patch has been applied.

Regards

Marcel