diff --git a/doc/opencv1/c/core_xml_yaml_persistence.rst b/doc/opencv1/c/core_xml_yaml_persistence.rst
index 141c16f471..60e9d265ca 100644
--- a/doc/opencv1/c/core_xml_yaml_persistence.rst
+++ b/doc/opencv1/c/core_xml_yaml_persistence.rst
@@ -56,30 +56,30 @@ using CXCore functions:
XML:
+::
+
+
+
+
+ 3
+ 3
+ f
+ 1. 0. 0. 0. 1. 0. 0. 0. 1.
+
+
-\begin{verbatim}
-
-
-
- 3
- 3
- f
- 1. 0. 0. 0. 1. 0. 0. 0. 1.
-
-
-\end{verbatim}
YAML:
+::
+
+ A: !!opencv-matrix
+ rows: 3
+ cols: 3
+ dt: f
+ data: [ 1., 0., 0., 0., 1., 0., 0., 0., 1.]
-\begin{verbatim}
-A: !!opencv-matrix
- rows: 3
- cols: 3
- dt: f
- data: [ 1., 0., 0., 0., 1., 0., 0., 0., 1.]
-\end{verbatim}
As it can be seen from the examples, XML uses nested tags to represent
hierarchy, while YAML uses indentation for that purpose (similar
to the Python programming language).
diff --git a/doc/opencv1/c/objdetect_cascade_classification.rst b/doc/opencv1/c/objdetect_cascade_classification.rst
index 953372b594..1f4b497f26 100644
--- a/doc/opencv1/c/objdetect_cascade_classification.rst
+++ b/doc/opencv1/c/objdetect_cascade_classification.rst
@@ -177,22 +177,21 @@ Boosted Haar classifier structures.
All the structures are used for representing a cascaded of boosted Haar classifiers. The cascade has the following hierarchical structure:
+::
-\begin{verbatim}
-Cascade:
- Stage,,1,,:
- Classifier,,11,,:
- Feature,,11,,
- Classifier,,12,,:
- Feature,,12,,
- ...
- Stage,,2,,:
- Classifier,,21,,:
- Feature,,21,,
- ...
- ...
+ Cascade:
+ Stage,,1,,:
+ Classifier,,11,,:
+ Feature,,11,,
+ Classifier,,12,,:
+ Feature,,12,,
+ ...
+ Stage,,2,,:
+ Classifier,,21,,:
+ Feature,,21,,
+ ...
+ ...
-\end{verbatim}
The whole hierarchy can be constructed manually or loaded from a file or an embedded base using the function
:ref:`LoadHaarClassifierCascade`
.