From b94ae2d4871d1aea890fe774f01dad13a3e5baf9 Mon Sep 17 00:00:00 2001 From: Richard Schwarting Date: Mon, 14 Oct 2013 03:06:33 -0400 Subject: [PATCH] gxml/*.vala: fix examples in comments regarding line breaking --- gxml/CDATASection.vala | 3 +-- gxml/Comment.vala | 3 +-- gxml/DocumentType.vala | 8 +++----- gxml/Element.vala | 16 +++++++++------- 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/gxml/CDATASection.vala b/gxml/CDATASection.vala index 906b9e2c..a27b8e34 100644 --- a/gxml/CDATASection.vala +++ b/gxml/CDATASection.vala @@ -33,8 +33,7 @@ namespace GXml { * To create one, use {@link GXml.Document.create_cdata_section}. * * An XML example would be like: - * {{{ . }}} + * {{{ .}}} * It is a type of Text node. For more, see: [[http://www.w3.org/TR/DOM-Level-1/level-one-core.html#ID-667469212]] */ public class CDATASection : Text { diff --git a/gxml/Comment.vala b/gxml/Comment.vala index f972026f..b1a5148e 100644 --- a/gxml/Comment.vala +++ b/gxml/Comment.vala @@ -30,8 +30,7 @@ * * To create one, use {@link GXml.Document.create_comment}. * - * An XML example looks like: {{{ - * + * An XML example looks like: {{{ * * text in the node * }}} diff --git a/gxml/DocumentType.vala b/gxml/DocumentType.vala index a7d56bae..4a6a182b 100644 --- a/gxml/DocumentType.vala +++ b/gxml/DocumentType.vala @@ -49,11 +49,9 @@ namespace GXml { * That which follows DOCTYPE in the XML doctype * declaration, like 'xml' or 'html'. For example, the * document type name is 'html' for a document with - * the XML doctype declaration of {{{ }}} - */ + * the XML doctype declaration of + * {{{ }}} + */ public string name { get { // TODO: is it possible for int_subset and ext_subset to have different names? diff --git a/gxml/Element.vala b/gxml/Element.vala index 8fa0c6c1..70b5b644 100644 --- a/gxml/Element.vala +++ b/gxml/Element.vala @@ -48,10 +48,10 @@ namespace GXml { /** * The element's tag_name. Multiple elements can have * the same tag name in a document. XML example: - * {{{<photos> - * <img src="..." /> - * <img src="..." /> - * </photos>}}} + * {{{ + * + * + * }}} * In this example, photos and img are tag names. * * Version: DOM Level 1 Core<
> @@ -542,9 +542,11 @@ namespace GXml { /** * This is a convenience property for Elements, useful * when you want to see Text descendents of an - * element. With the XML example {{{Eeylops Owl EmporiumObscurus Books}}} taking the + * element. With the XML example + * {{{ + * Eeylops Owl Emporium + * Obscurus Books + * }}} taking the * node for the shop element with id 1 and using this * method, you would get back "Eeylops Owl Emporiums". * If you used it on the shops element, you'd get -- GitLab