Explorar o código

Merge pull request #190 from mikemill/html5

Html5 fixes from Antes (See PR 177)
emanuele45 %!s(int64=11) %!d(string=hai) anos
pai
achega
c7244269e3

+ 2 - 2
Sources/Subs.php

@@ -1509,8 +1509,8 @@ function parse_bbc($message, $smileys = true, $cache_id = '', $parse_tags = arra
 			),
 			array(
 				'tag' => 'tt',
-				'before' => '<tt class="bbc_tt">',
-				'after' => '</tt>',
+				'before' => '<span class="bbc_tt">',
+				'after' => '</span>',
 			),
 			array(
 				'tag' => 'u',

+ 3 - 0
Themes/default/MessageIndex.template.php

@@ -141,6 +141,9 @@ function template_main()
 	</div>
 	<p class="description_board">
 		', $context['description'], '<br/>';
+	else
+		echo '
+	<p class="description_board">';
 
 	if (!empty($context['moderators']))
 		echo '

+ 1 - 0
Themes/default/css/index.css

@@ -406,6 +406,7 @@ em {
 	padding: 0 0 0 35px;
 	list-style-type: inherit;
 }
+/* Everything is same except HTML5 valid */
 .bbc_tt {
 	font-family: "dejavu sans mono", "monaco", "lucida console", "courier new", monospace;
 }