Skip to content

Commit

Permalink
Try to keep well-formed HTML by fixing some header tags and not strip…
Browse files Browse the repository at this point in the history
…ping quotes around attributes.
  • Loading branch information
BSVino committed Sep 20, 2014
1 parent 3667f6b commit 3066f5c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def replace_alias(matchobj):
output = open(output_dir + version_dir + "/" + command, "w")
output_string = output_html
if args.buildmode == 'full':
output_string = htmlmin.minify(output_html, remove_comments=True, reduce_boolean_attributes=True).encode('ascii', 'xmlcharrefreplace')
output_string = htmlmin.minify(output_html, remove_comments=True, reduce_boolean_attributes=True, remove_optional_attribute_quotes=False).encode('ascii', 'xmlcharrefreplace')
output.write(output_string)
output.close()

Expand Down
4 changes: 2 additions & 2 deletions html/header.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset='utf-8'>
<meta http-equiv="Content-Type" content="application/xhtml+xml;charset=utf-8" />
<title>{$command} - {$api_name} {$command_major_version} - docs.gl</title>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion htmlmin

0 comments on commit 3066f5c

Please sign in to comment.