Permalink
Browse files

MDL-48276 qformat_xhtml: avoid uncessary html in .css file

In order to help automated tools move the html out of the css
file.
  • Loading branch information...
danpoltawski committed Nov 18, 2014
1 parent 0ac6d59 commit cf599bc8894583361186334d191b5dfd44ba9e2f
Showing with 10 additions and 11 deletions.
  1. +2 −0 question/format/xhtml/format.php
  2. +8 −11 question/format/xhtml/xhtml.css
@@ -172,7 +172,9 @@ protected function presave_process($content) {
$xp .= "<head>\n";
$xp .= "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" />\n";
$xp .= "<title>Moodle Quiz XHTML Export</title>\n";
$xp .= "<style type=\"text/css\">\n";
$xp .= $css;
$xp .= "</style>\n";
$xp .= "</head>\n";
$xp .= "<body>\n";
$xp .= "<form action=\"...REPLACE ME...\" method=\"post\">\n\n";
@@ -1,23 +1,20 @@
<style>
body {
body {
font-family: Verdana, Helvetica, Sans-Serif;
background-color: #fff;
color: #000;
}
}
.question {
.question {
border: 1px solid #ddd;
margin: 5px;
padding: 3px;
}
}
.question h3 {
.question h3 {
font-weight: normal;
font-size: 125%;
}
}
.question ul {
.question ul {
list-style-type: none;
}
</style>
}

0 comments on commit cf599bc

Please sign in to comment.