[vala/staging: 1/2] valadoc: Fix some string escaping which gettext complains about
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 1/2] valadoc: Fix some string escaping which gettext complains about
- Date: Thu, 20 Sep 2018 16:41:14 +0000 (UTC)
commit 790edc8c2608df1a8e30aa35bf2a19426f73e535
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu Apr 19 23:58:31 2018 +0200
valadoc: Fix some string escaping which gettext complains about
libvaladoc/parser/tokentype.vala | 2 +-
valadoc/doclets/gtkdoc/generator.vala | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libvaladoc/parser/tokentype.vala b/libvaladoc/parser/tokentype.vala
index b5c44375b..218c1dd8d 100644
--- a/libvaladoc/parser/tokentype.vala
+++ b/libvaladoc/parser/tokentype.vala
@@ -126,7 +126,7 @@ public class Valadoc.TokenType : Object {
ALIGN_TOP = new TokenType.basic ("^");
ALIGN_BOTTOM = new TokenType.basic ("v");
SINGLE_QUOTE_2 = new TokenType.basic ("''");
- SLASH_2 = new TokenType.basic ("//");
+ SLASH_2 = new TokenType.basic ("""//""");
UNDERSCORE_2 = new TokenType.basic ("__");
BACK_QUOTE_2 = new TokenType.basic ("``");
OPEN_BRACE = new TokenType.basic ("{");
diff --git a/valadoc/doclets/gtkdoc/generator.vala b/valadoc/doclets/gtkdoc/generator.vala
index c6f135a8c..6e389d7b7 100644
--- a/valadoc/doclets/gtkdoc/generator.vala
+++ b/valadoc/doclets/gtkdoc/generator.vala
@@ -537,9 +537,9 @@ public class Gtkdoc.Generator : Api.Visitor {
gcomment = add_symbol (filename, cl.get_set_value_function_cname ());
gcomment.brief_comment = "Set the contents of a %s derived <link
linkend=\"GValue\"><type>GValue</type></link> to @v_object."
.printf (get_docbook_type_link (cl));
- gcomment.long_comment = "<link linkend=\"%s\"><function>%s()</function></link>
increases the reference count of @v_object (the <link linkend=\"GValue\"><type>GValue</type></link> holds a
reference to @v_object). If you do not wish to increase the reference count of the object (i.e. you wish to
pass your current reference to the <link linkend=\"GValue\"><type>GValue</type></link> because you no longer
need it), use <link linkend=\"%s\"><function>%s()</function></link> instead.
+ gcomment.long_comment = """<link linkend="%s"><function>%s()</function></link>
increases the reference count of @v_object (the <link linkend="GValue"><type>GValue</type></link> holds a
reference to @v_object). If you do not wish to increase the reference count of the object (i.e. you wish to
pass your current reference to the <link linkend="GValue"><type>GValue</type></link> because you no longer
need it), use <link linkend="%s"><function>%s()</function></link> instead.
-It is important that your <link linkend=\"GValue\"><type>GValue</type></link> holds a reference to @v_object
(either its own, or one it has taken) to ensure that the object won't be destroyed while the <link
linkend=\"GValue\"><type>GValue</type></link> still exists)."
+It is important that your <link linkend="GValue"><type>GValue</type></link> holds a reference to @v_object
(either its own, or one it has taken) to ensure that the object won't be destroyed while the <link
linkend="GValue"><type>GValue</type></link> still exists)."""
.printf (to_docbook_id (cl.get_set_value_function_cname ()),
cl.get_set_value_function_cname (),
to_docbook_id (cl.get_take_value_function_cname ()),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]