Skip to content

Commit

Permalink
Fix too long lines in doc files
Browse files Browse the repository at this point in the history
  • Loading branch information
gatkin committed Jan 6, 2019
1 parent c0228f9 commit 893b33f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions docs/advanced_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ By default, declxml only performs a very basic level of validation by ensuring
that required values are present and that they are of the correct type. Hooks
provide the ability to perform additional, application-specific validation.

When performing validation, we can use the ``ProcessorStateView`` object provided
as the first parameter to the ``after_parse`` and ``before_serialize`` functions.
The ``ProcessorStateView`` object provides a useful method, ``raise_error``, for
reporting errors. This method will raise an application-provided exception
with a custom error message and will include information about the current
state of the processor in the error message.
When performing validation, we can use the ``ProcessorStateView`` object
provided as the first parameter to the ``after_parse`` and ``before_serialize``
functions. The ``ProcessorStateView`` object provides a useful method,
``raise_error``, for reporting errors. This method will raise an
application-provided exception with a custom error message and will include
information about the current state of the processor in the error message.

For example, if we want to ensure that integer values are in a specific range,
we could use hooks to perform the validation.
Expand Down
4 changes: 2 additions & 2 deletions docs/guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ function.
<birth-year>1920</birth-year>
</author>

Note that the class provided to the ``user_object`` factory function must have a
zero-argument constructor. It is also possible to pass any other callable
Note that the class provided to the ``user_object`` factory function must have
a zero-argument constructor. It is also possible to pass any other callable
object that takes zero parameters and returns an object instance to which
parsed values will be read into.

Expand Down

0 comments on commit 893b33f

Please sign in to comment.