]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
html: add <meta charset="UTF-8"/>
authorFlorian Brosch <flo.brosch@gmail.com>
Sat, 23 Aug 2014 05:57:02 +0000 (07:57 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Fri, 29 Aug 2014 13:52:32 +0000 (15:52 +0200)
src/libvaladoc/html/basicdoclet.vala
src/libvaladoc/html/htmlmarkupwriter.vala

index e048f7392bf73bb879d68b57283f25c8e9c3c23e..7247f2b52f3780c90aad6c5c23ed16b5554f73b7 100644 (file)
@@ -1101,6 +1101,7 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
        protected void write_file_header (string css, string js, string? title) {
                writer.start_tag ("html");
                writer.start_tag ("head");
+               writer.simple_tag ("meta", {"charset", "UTF-8"});
                if (title == null) {
                        writer.start_tag ("title")
                                .text ("Vala Binding Reference")
index 3a6b4b2e942fa3507f0439d858f7ed67f2aefcf4..3c2f0cfb82b15fdb3c3a00ead2e01955fb5c2c97 100644 (file)
@@ -88,6 +88,7 @@ public class Valadoc.Html.MarkupWriter : Valadoc.MarkupWriter {
                return name != "html"
                        && name != "head"
                        && name != "title"
+                       && name != "meta"
                        && name != "link"
                        && name != "body"
                        && name != "div"
@@ -109,6 +110,7 @@ public class Valadoc.Html.MarkupWriter : Valadoc.MarkupWriter {
 
        protected override bool content_inline_element (string name) {
                return name == "title"
+                       || name == "meta"
                        || name == "p"
                        || name == "a"
                        || name == "h1"