[seed] [docs] Use   to make empty lines not disappear. Hackk..



commit 11df7daf19cf4eaf064fdd1cbee83e8f24228eec
Author: Tim Horton <hortont424 gmail com>
Date:   Wed Jul 8 16:19:41 2009 -0400

    [docs] Use &nbsp; to make empty lines not disappear. Hackk..

 doc/reference/tmpl/seed-main.sgml    |    8 ++++----
 doc/reference/tmpl/seed-modules.sgml |   25 ++++++++++++-------------
 2 files changed, 16 insertions(+), 17 deletions(-)
---
diff --git a/doc/reference/tmpl/seed-main.sgml b/doc/reference/tmpl/seed-main.sgml
index f8e76e2..88484c1 100644
--- a/doc/reference/tmpl/seed-main.sgml
+++ b/doc/reference/tmpl/seed-main.sgml
@@ -16,16 +16,16 @@ int main (int argc, char **argv)
 {
     SeedEngine * eng;
     SeedScript * script;
-
+&nbsp;
     /* Initialize the Seed engine */
     eng = seed_init(&amp;argc, &amp;argv);
-
+&nbsp;
     /* Create a simple #SeedScript */
     script = seed_make_script(eng->context, "print('Hello, world!')", NULL, 0);
-
+&nbsp;
     /* Evaluate the #SeedScript in the default context */
     seed_evaluate(eng->context, script, 0);
-
+&nbsp;
     g_free(script);
     return 0;
 }
diff --git a/doc/reference/tmpl/seed-modules.sgml b/doc/reference/tmpl/seed-modules.sgml
index 28886d2..4f446dc 100644
--- a/doc/reference/tmpl/seed-modules.sgml
+++ b/doc/reference/tmpl/seed-modules.sgml
@@ -21,7 +21,7 @@ SeedObject seed_module_init(SeedEngine * eng)
 {
     /* Say hello! */
     g_print("Hello, Seed Module World!\n");
-    
+&nbsp;
     /* Return an empty object as the module's namespace */
     return seed_make_object (eng->context, NULL, NULL);
 }
@@ -45,42 +45,41 @@ SeedValue say_hello_to(SeedContext ctx,
                        SeedException *exception)
 {
     guchar * name;
-
+&nbsp;
     /* Check that only one argument was passed into the function.
        CHECK_ARG_COUNT() is from seed-module.h, which you might find useful. */
     CHECK_ARG_COUNT("hello.say_hello_to", 1);
-    
+&nbsp;
     /* Convert the first argument, a #SeedValue, to a C string */
     name = seed_value_to_string(ctx, arguments[0], exception);
-    
+&nbsp;    
     g_print("Hello, %s!\n", name);
-    
+&nbsp;    
     g_free(name);
-    
+&nbsp;    
     return seed_make_null(ctx);
 }
-
-
+&nbsp;
 /* Define an array of #seed_static_function */
 seed_static_function gettext_funcs[] = {
     {"say_hello_to", say_hello_to, 0}
 };
-
+&nbsp;
 SeedObject seed_module_init(SeedEngine * eng)
 {
     SeedGlobalContext ctx = eng->context;
-
+&nbsp;
     /* Create a new class definition with our array of static functions */
     seed_class_definition ns_class_def = seed_empty_class;
     ns_class_def.static_functions = example_funcs;
-
+&nbsp;
     /* Create a class from the class definition we just created */
     SeedClass ns_class = seed_create_class(&amp;ns_class_def);
-
+&nbsp;
     /* Instantiate the class; this instance will be the namespace we return */
     ns_ref = seed_make_object (ctx, ns_class, NULL);
     seed_value_protect (ctx, ns_ref);
-
+&nbsp;
     return ns_ref;
 }
 </programlisting>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]