]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
valadoc: Fix some string escaping which gettext complains about
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 19 Apr 2018 21:58:31 +0000 (23:58 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 20 Sep 2018 16:40:26 +0000 (18:40 +0200)
libvaladoc/parser/tokentype.vala
valadoc/doclets/gtkdoc/generator.vala

index b5c44375b10bbda93161ad9e4f778f6d77e2d140..218c1dd8dff726e7493a14df8700c73f1fa2a3fb 100644 (file)
@@ -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 ("{");
index c6f135a8c94678b60e693a082e2c5fdb23a39e4a..6e389d7b797cb77422d4dd24bde41f60a81dc146 100644 (file)
@@ -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 ()),