aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp A2019-04-17 21:26:22 +0200
committerPhilipp A2019-04-17 21:26:22 +0200
commitdf4a83a5639adb21940f1ce43da489ba430621ef (patch)
treefe06aab4c13ee84d4a3b7545096214ae831a55f2
parenta145092e69d5fcc5cc695ea9d924b2815a024e69 (diff)
downloadrust-rst-df4a83a5639adb21940f1ce43da489ba430621ef.tar.bz2
development file
-rw-r--r--DEVELOPMENT.rst11
-rw-r--r--src/document_tree/extra_attributes.rs2
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,