diff options
| -rw-r--r-- | DEVELOPMENT.rst | 11 | ||||
| -rw-r--r-- | src/document_tree/extra_attributes.rs | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/DEVELOPMENT.rst b/DEVELOPMENT.rst new file mode 100644 index 0000000..fece517 --- /dev/null +++ b/DEVELOPMENT.rst @@ -0,0 +1,11 @@ +Development +=========== + +To format the HTML, you can use dindent_. +I didn’t find anything else that *just* reindents HTML. + +.. code:: bash + + cargo run -- README.rst | dindent --input='php://stdin' + +.. _dindent: https://github.com/gajus/dindent diff --git a/src/document_tree/extra_attributes.rs b/src/document_tree/extra_attributes.rs index d73cdec..5ed9788 100644 --- a/src/document_tree/extra_attributes.rs +++ b/src/document_tree/extra_attributes.rs @@ -94,7 +94,7 @@ pub type ImageInline = Image; impl Image { pub fn new(uri: target::Target) -> Image { Image { - uri: uri, + uri, align: None, alt: None, height: None, |
