[valadoc] libvaladoc/html: BasicDoclet: <title> improvements
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] libvaladoc/html: BasicDoclet: <title> improvements
- Date: Thu, 3 Nov 2011 02:37:24 +0000 (UTC)
commit 843c6cfc341d82f9a1282f52f3db6448bf360c0c
Author: Florian Brosch <flo brosch gmail com>
Date: Wed Oct 5 23:34:28 2011 +0200
libvaladoc/html: BasicDoclet: <title> improvements
src/libvaladoc/html/basicdoclet.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libvaladoc/html/basicdoclet.vala b/src/libvaladoc/html/basicdoclet.vala
index aa1c3e4..20ee32f 100755
--- a/src/libvaladoc/html/basicdoclet.vala
+++ b/src/libvaladoc/html/basicdoclet.vala
@@ -821,7 +821,11 @@ 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.start_tag ("title").text ("Vala Binding Reference").end_tag ("title");
+ if (title == null) {
+ writer.start_tag ("title").text ("Vala Binding Reference").end_tag ("title");
+ } else {
+ writer.start_tag ("title").text (title).text (" -- Vala Binding Reference").end_tag ("title");
+ }
writer.stylesheet_link (css);
writer.javascript_link (js);
writer.end_tag ("head");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]