diff --git a/lib/source_url.rb b/lib/source_url.rb index a5b79ae6afe..9c7a49941d7 100644 --- a/lib/source_url.rb +++ b/lib/source_url.rb @@ -5,10 +5,10 @@ class SourceURL < Tilt::Template end def evaluate(scope, locals, &block) - code = '' - code << 'eval(' + code = "" + code << "eval(" code << data.inspect - code << " + \"\\n//@ sourceURL=/#{scope.logical_path}\"" + code << " + \"\\n//@ sourceURL=/'#{scope.logical_path}'\"" code << ");\n" code end