summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/xml_escape.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/mixin/xml_escape.rb')
-rw-r--r--lib/chef/mixin/xml_escape.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/mixin/xml_escape.rb b/lib/chef/mixin/xml_escape.rb
index ceb45df3e6..78b0399493 100644
--- a/lib/chef/mixin/xml_escape.rb
+++ b/lib/chef/mixin/xml_escape.rb
@@ -46,10 +46,10 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
-require 'chef/log'
+require "chef/log"
begin
- require 'fast_xs'
+ require "fast_xs"
rescue LoadError
Chef::Log.info "The fast_xs gem is not installed, slower pure ruby XML escaping will be used."
end
@@ -93,9 +93,9 @@ class Chef
# http://www.w3.org/TR/REC-xml/#dt-chardata
PREDEFINED = {
- 38 => '&', # ampersand
- 60 => '<', # left angle bracket
- 62 => '>' # right angle bracket
+ 38 => "&", # ampersand
+ 60 => "<", # left angle bracket
+ 62 => ">" # right angle bracket
}
# http://www.w3.org/TR/REC-xml/#charsets