Skip to content

Commit

Permalink
append trailing dot to output script and style tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
donpark committed Jun 5, 2014
1 parent 356bae6 commit 7c962ba
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/html2jade.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class Converter
trim: false
wrap: false
else
output.writeln "#{tagHead}#{tagAttr}"
output.writeln "#{tagHead}#{tagAttr}."
@writer.writeTextContent node, output,
pipe: false
wrap: false
Expand All @@ -328,7 +328,7 @@ class Converter
trim: false
wrap: false
else
output.writeln "#{tagHead}#{tagAttr}"
output.writeln "#{tagHead}#{tagAttr}."
@writer.writeTextContent node, output,
pipe: false
wrap: false
Expand Down
10 changes: 5 additions & 5 deletions test/data/conditional3.jade
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ html.no-js
meta(name='description', content='')
meta(name='viewport', content='width=device-width')
link(rel='stylesheet', href='css/bootstrap.min.css')
style
style.
body {
padding-top: 50px;
padding-bottom: 20px;
Expand All @@ -26,11 +26,11 @@ html.no-js
body
//if lt IE 7
p.chromeframe
| You are using an
| You are using an
strong outdated
| browser. Please
| browser. Please
a(href='http://browsehappy.com/') upgrade your browser
| or
| or
a(href='http://www.google.com/chromeframe/?redirect=true') activate Google Chrome Frame
| to improve your experience.
| to improve your experience.
.navbar.navbar-inverse.navbar-fixed-top
2 changes: 1 addition & 1 deletion test/data/entity.jade
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
html
body
p
| Note the lack of the
| Note the lack of the
code <meta name="viewport" content="width=device-width, initial-scale=1.0">
| , which disables the zooming aspect of sites in mobile devices. In addition, we reset our container's width and are basically good to go.
p © Company 2013
2 changes: 1 addition & 1 deletion test/data/headless.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
html
head
script(type='text/javascript')
script(type='text/javascript').
window.location = "/newsite/";
6 changes: 3 additions & 3 deletions test/data/html5boilerplate.jade
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ html.no-js(lang='en')
footer
// ! end of #container
script(src='//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js')
script
script.
window.jQuery || document.write('<script src="js/libs/jquery-1.6.2.min.js"><\\/script>')
// scripts concatenated and minified via ant build script
script(src='js/plugins.js')
script(src='js/script.js')
// end scripts
script
script.
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; // Change UA-XXXXX-X to be your site's ID
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
//if lt IE 7
script(src='//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.2/CFInstall.min.js')
script
script.
window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})

0 comments on commit 7c962ba

Please sign in to comment.