Fixed %s in document examples. LM-10
authorMikael Hallendal <micke@imendio.com>
Sat, 24 Feb 2007 07:55:13 +0100
changeset 240 4d512f7e4ce1
parent 239 b80867c0e10a
child 242 b0b17385a143
Fixed %s in document examples. LM-10 Use &percnt; for % in the example listings and changes & to &amp;
docs/reference/tmpl/lm-connection.sgml
--- a/docs/reference/tmpl/lm-connection.sgml	Sat Feb 24 07:36:27 2007 +0100
+++ b/docs/reference/tmpl/lm-connection.sgml	Sat Feb 24 07:55:13 2007 +0100
@@ -7,7 +7,7 @@
 <!-- ##### SECTION Long_Description ##### -->
 <para>
 An example of how to use Loudmouth with the synchronous API.
-<informalexample><programlisting><![CDATA[
+<informalexample><programlisting>
 int
 main (int argc, char **argv)
 {
@@ -18,22 +18,22 @@
 
         connection = lm_connection_new ("myserver");
 
-        if (!lm_connection_open_and_block (connection, &error)) {
-                g_error ("Failed to open: %s\n", error->message);
+        if (!lm_connection_open_and_block (connection, &amp;error)) {
+                g_error ("Failed to open: &percnt;s\n", error->message);
         }
 
 	if (!lm_connection_authenticate_and_block (connection,
 						   "username", "password", 
 						   "resource",
-						   &error)) {
-		g_error ("Failed to authenticate: %s\n", error->message);
+						   &amp;error)) {
+		g_error ("Failed to authenticate: &percnt;s\n", error->message);
 	}
 	
 	m = lm_message_new ("recipient", LM_MESSAGE_TYPE_MESSAGE);
 	lm_message_node_add_child (m->node, "body", "message");
 	
-	if (!lm_connection_send (connection, m, &error)) {
-		g_error ("Send failed: %s\n", error->message);
+	if (!lm_connection_send (connection, m, &amp;error)) {
+		g_error ("Send failed: &percnt;s\n", error->message);
 	}
 
 	lm_message_unref (m);
@@ -43,7 +43,7 @@
 	
         return 0;
 }
-]]></programlisting></informalexample>
+</programlisting></informalexample>
 </para>
 
 <!-- ##### SECTION See_Also ##### -->