Tweak README layout.
authorCarl Hetherington <cth@carlh.net>
Fri, 29 May 2015 18:11:18 +0000 (19:11 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 29 May 2015 18:11:18 +0000 (19:11 +0100)
README

diff --git a/README b/README
index e9f63444daac0d9e1bdb954a010df844cb4f1d78..0f333ff4b4770aa4b852c6a47d5347ef0a5c1427 100644 (file)
--- a/README
+++ b/README
@@ -1,23 +1,28 @@
 libcxml
 -------
 
-This is a very small library which provides a slightly tidier C++ API than libxml++
-for parsing HTML.
+This is a very small library which provides a slightly tidier
+C++ API than libxml++ for parsing HTML.
 
 For example:
 
 cxml::Document doc ("RootNodeName");
 doc.read ("foo.xml");
 
-/* Get the contents of child node <Fred>, throwing an exception if it does not exist */
+/* Get the contents of child node <Fred>, throwing an
+ * exception if it does not exist
+ */
 string s = doc.string_child ("Fred");
 
-/* Get the contents of child node <Jim>, or 42 if it does not exist */
+/* Get the contents of child node <Jim>, or 42 if it
+ * does not exist
+ */
 int i = doc.optional_number_child<int> ("Jim").get_value_or (42);
 
-/* Get the contents of <Roger> within <Sheila>, throwing an exception if either node
-   is not present.
-*/
+/* Get the contents of <Roger> within <Sheila>,
+ * throwing an exception if either node
+ * is not present.
+ */
 double d = doc.node_child("Sheila").number_child<double> ("Roger");
 
 For full details, see src/cxml.h