[valadoc] html: add <meta charset="UTF-8"/>
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] html: add <meta charset="UTF-8"/>
- Date: Tue, 2 Sep 2014 17:16:50 +0000 (UTC)
commit aa0fa2da0f5e0b1ab6ace926866342b803504941
Author: Florian Brosch <flo brosch gmail com>
Date: Sat Aug 23 07:57:02 2014 +0200
html: add <meta charset="UTF-8"/>
src/libvaladoc/html/basicdoclet.vala | 1 +
src/libvaladoc/html/htmlmarkupwriter.vala | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libvaladoc/html/basicdoclet.vala b/src/libvaladoc/html/basicdoclet.vala
index e048f73..7247f2b 100644
--- a/src/libvaladoc/html/basicdoclet.vala
+++ b/src/libvaladoc/html/basicdoclet.vala
@@ -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")
diff --git a/src/libvaladoc/html/htmlmarkupwriter.vala b/src/libvaladoc/html/htmlmarkupwriter.vala
index 3a6b4b2..3c2f0cf 100644
--- a/src/libvaladoc/html/htmlmarkupwriter.vala
+++ b/src/libvaladoc/html/htmlmarkupwriter.vala
@@ -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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]