##// END OF EJS Templates
Fixed that tag[0] may be nil....
Jean-Philippe Lang -
r8611:967e6413e510
parent child
Show More
@@ -3474,7 +3474,7 class TCPDF
3474 #Extract attributes
3474 #Extract attributes
3475 # get tag name
3475 # get tag name
3476 tag = element.scan(/([a-zA-Z0-9]*)/).flatten.delete_if {|x| x.length == 0}
3476 tag = element.scan(/([a-zA-Z0-9]*)/).flatten.delete_if {|x| x.length == 0}
3477 tag = tag[0].downcase;
3477 tag = tag[0].to_s.downcase;
3478
3478
3479 # get attributes
3479 # get attributes
3480 attr_array = element.scan(/([^=\s]*)=["\']?([^"\']*)["\']?/)
3480 attr_array = element.scan(/([^=\s]*)=["\']?([^"\']*)["\']?/)
@@ -3497,7 +3497,7 class TCPDF
3497 #Extract attributes
3497 #Extract attributes
3498 # get tag name
3498 # get tag name
3499 tag = element.scan(/([a-zA-Z0-9]*)/).flatten.delete_if {|x| x.length == 0}
3499 tag = element.scan(/([a-zA-Z0-9]*)/).flatten.delete_if {|x| x.length == 0}
3500 tag = tag[0].downcase;
3500 tag = tag[0].to_s.downcase;
3501
3501
3502 # get attributes
3502 # get attributes
3503 attr_array = element.scan(/([^=\s]*)=["\']?([^"\']*)["\']?/)
3503 attr_array = element.scan(/([^=\s]*)=["\']?([^"\']*)["\']?/)
General Comments 0
You need to be logged in to leave comments. Login now