lib: fix whitespaces in misc files
authorAlexandre Terrasa <alexandre@moz-code.org>
Wed, 13 May 2015 23:48:56 +0000 (19:48 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Wed, 10 Jun 2015 22:22:35 +0000 (18:22 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/html/html.nit
lib/ini.nit
lib/neo4j/graph/json_graph_store.nit
lib/neo4j/neo4j.nit

index 9b88578..6a24c07 100644 (file)
@@ -126,6 +126,7 @@ class HTMLTag
        var attrs: Map[String, String] = new HashMap[String, String]
 
        # Get the attributed value of 'prop' or null if 'prop' is undifened
+       #
        #     var img = new HTMLTag("img")
        #     img.attr("src", "./image.png").attr("alt", "image")
        #     assert img.get_attr("src")     == "./image.png"
@@ -135,6 +136,7 @@ class HTMLTag
        end
 
        # Set a 'value' for 'key'
+       #
        #     var img = new HTMLTag("img")
        #     img.attr("src", "./image.png").attr("alt", "image")
        #     assert img.write_to_string      == """<img src=".&#47;image.png" alt="image"/>"""
@@ -144,6 +146,7 @@ class HTMLTag
        end
 
        # Add a CSS class to the HTML tag
+       #
        #     var img = new HTMLTag("img")
        #     img.add_class("logo").add_class("fullpage")
        #     assert img.write_to_string      == """<img class="logo fullpage"/>"""
@@ -156,6 +159,7 @@ class HTMLTag
        var classes: Set[String] = new HashSet[String]
 
        # Add multiple CSS classes
+       #
        #     var img = new HTMLTag("img")
        #     img.add_classes(["logo", "fullpage"])
        #     assert img.write_to_string      == """<img class="logo fullpage"/>"""
@@ -165,6 +169,7 @@ class HTMLTag
        end
 
        # Set a CSS 'value' for 'prop'
+       #
        #     var img = new HTMLTag("img")
        #     img.css("border", "2px solid black").css("position", "absolute")
        #     assert img.write_to_string      == """<img style="border: 2px solid black; position: absolute"/>"""
@@ -175,6 +180,7 @@ class HTMLTag
        private var css_props: Map[String, String] = new HashMap[String, String]
 
        # Get CSS value for 'prop'
+       #
        #     var img = new HTMLTag("img")
        #     img.css("border", "2px solid black").css("position", "absolute")
        #     assert img.get_css("border")    == "2px solid black"
@@ -208,6 +214,7 @@ class HTMLTag
         end
 
        # Add a HTML 'child' to self
+       #
        #     var ul = new HTMLTag("ul")
        #     ul.add(new HTMLTag("li"))
        #     assert ul.write_to_string    == "<ul><li></li></ul>"
@@ -235,6 +242,7 @@ class HTMLTag
        var children: Set[HTMLTag] = new HashSet[HTMLTag]
 
        # Clear all child and set the text of element
+       #
        #     var p = new HTMLTag("p")
        #     p.text("Hello World!")
        #     assert p.write_to_string      ==  "<p>Hello World!</p>"
@@ -247,6 +255,7 @@ class HTMLTag
        end
 
        # Append text to element
+       #
        #     var p = new HTMLTag("p")
        #     p.append("Hello")
        #     p.add(new HTMLTag("br"))
index 282f737..81e0088 100644 (file)
@@ -297,4 +297,3 @@ private class ConfigNode
                return null
        end
 end
-
index 84e34cb..1fdf1ed 100644 (file)
@@ -20,14 +20,14 @@ import graph
 #
 # * `"nodes"`: An array with all nodes. Each node is an object with the
 # following properties:
-#      * `"labels"`: An array of all applied labels.
-#      * `"properties"`: An object mapping each defined property to its value.
+#      * `"labels"`: An array of all applied labels.
+#      * `"properties"`: An object mapping each defined property to its value.
 # * `"edges"`: An array with all relationships. Each relationship is an object
 # with the following properties:
-#      * `"type"`: The type (`String`) of the relationship.
-#      * `"properties"`: An object mapping each defined property to its value.
-#      * `"from"`: The local ID of the source node.
-#      * `"to"`: The local ID of the destination node.
+#      * `"type"`: The type (`String`) of the relationship.
+#      * `"properties"`: An object mapping each defined property to its value.
+#      * `"from"`: The local ID of the source node.
+#      * `"to"`: The local ID of the destination node.
 #
 # ~~~nit
 # import neo4j::graph::sequential_id
@@ -37,7 +37,7 @@ import graph
 # a.labels.add "Foo"
 # a["answer"] = 42
 # a["Ultimate question of"] = new JsonArray.from(["life",
-#              "the Universe", "and Everything."])
+#              "the Universe", "and Everything."])
 # graph.nodes.register a
 # var b = graph.create_node
 # b.labels.add "Foo"
@@ -125,7 +125,7 @@ redef class NeoGraph
        # a.labels.add "Foo"
        # a["answer"] = 42
        # a["Ultimate question of"] = new JsonArray.from(["life",
-       #               "the Universe", "and Everything."])
+       #               "the Universe", "and Everything."])
        # graph.nodes.register a
        # var b = graph.create_node
        # b.labels.add "Foo"
@@ -133,7 +133,7 @@ redef class NeoGraph
        # graph.edges.add new NeoEdge(a, "BAZ", b)
        #
        # graph = new NeoGraph.from_json(
-       #               new SequentialNodeCollection("node_id"), graph.to_json)
+       #               new SequentialNodeCollection("node_id"), graph.to_json)
        # assert 1 == graph.edges.length
        # for edge in graph.edges do
        #       assert "BAZ" == edge.rel_type
@@ -248,10 +248,10 @@ redef class NeoNode
        #
        #     var node = new NeoNode.from_json("""
        #     {
-       #       "labels": ["foo", "Bar"],
-       #       "properties": {
-       #               "baz": 42
-       #       }
+       #       "labels": ["foo", "Bar"],
+       #       "properties": {
+       #               "baz": 42
+       #       }
        #     }
        #     """)
        #     assert ["foo", "Bar"] == node.labels
index 692f103..54dc94e 100644 (file)
@@ -143,7 +143,7 @@ class Neo4jClient
        # Save the node in base
        #
        #     var client = new Neo4jClient("http://localhost:7474")
-       #     #
+       #
        #     # Create a node
        #     var andres = new NeoNode
        #     andres["name"] = "Andres"
@@ -199,7 +199,7 @@ class Neo4jClient
        # From and to nodes will be created.
        #
        #     var client = new Neo4jClient("http://localhost:7474")
-       #     #
+       #
        #     var andres = new NeoNode
        #     var kate = new NeoNode
        #     var edge = new NeoEdge(andres, "LOVES", kate)
@@ -248,14 +248,14 @@ class Neo4jClient
        # Retrieve all nodes with specified `lbl`
        #
        #     var client = new Neo4jClient("http://localhost:7474")
-       #     #
+       #
        #     var andres = new NeoNode
        #     andres.labels.add_all(["Human", "Male"])
        #     client.save_node(andres)
        #     var kate = new NeoNode
        #     kate.labels.add_all(["Human", "Female"])
        #     client.save_node(kate)
-       #     #
+       #
        #     var nodes = client.nodes_with_label("Human")
        #     assert nodes.has(andres)
        #     assert nodes.has(kate)
@@ -274,14 +274,14 @@ class Neo4jClient
        # Retrieve nodes belonging to all the specified `labels`.
        #
        #     var client = new Neo4jClient("http://localhost:7474")
-       #     #
+       #
        #     var andres = new NeoNode
        #     andres.labels.add_all(["Human", "Male"])
        #     client.save_node(andres)
        #     var kate = new NeoNode
        #     kate.labels.add_all(["Human", "Female"])
        #     client.save_node(kate)
-       #     #
+       #
        #     var nodes = client.nodes_with_labels(["Human", "Male"])
        #     assert nodes.has(andres)
        #     assert not nodes.has(kate)
@@ -1027,4 +1027,3 @@ class NeoJob
                return job
        end
 end
-