Fixed %s in document examples. LM-10
Use % for % in the example listings and changes & to &
--- a/docs/reference/tmpl/lm-connection.sgml Sat Feb 24 07:36:12 2007 +0100
+++ b/docs/reference/tmpl/lm-connection.sgml Sat Feb 24 07:55:25 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, &error)) {
+ g_error ("Failed to open: %s\n", error->message);
}
if (!lm_connection_authenticate_and_block (connection,
"username", "password",
"resource",
- &error)) {
- g_error ("Failed to authenticate: %s\n", error->message);
+ &error)) {
+ g_error ("Failed to authenticate: %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, &error)) {
+ g_error ("Send failed: %s\n", error->message);
}
lm_message_unref (m);
@@ -43,7 +43,7 @@
return 0;
}
-]]></programlisting></informalexample>
+</programlisting></informalexample>
</para>
<!-- ##### SECTION See_Also ##### -->