summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-04-11 13:18:33 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-04-11 13:18:33 +0200
commit479488335c587e0a2ffe7e468f52b6062a40533d (patch)
treec05c1d2471314e3bddcae5df386371ae09c787c8 /src/bin
parentb849ad902207dda976f6470df6e32b9d8aa40385 (diff)
mono-docs: Properly indent code examples
First code line was indented differently by DocFX because of tabs, whitespace or who knows what. This adds a newline after the <code> tag so all code lines have the same indentation.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian_mono/eolian/mono/documentation.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/documentation.hh b/src/bin/eolian_mono/eolian/mono/documentation.hh
index 0460b5783e..d603e0bb99 100644
--- a/src/bin/eolian_mono/eolian/mono/documentation.hh
+++ b/src/bin/eolian_mono/eolian/mono/documentation.hh
@@ -323,7 +323,8 @@ struct documentation_generator
323 // There is no example file for this class or method, just return 323 // There is no example file for this class or method, just return
324 if (!exfile.good()) return true; 324 if (!exfile.good()) return true;
325 std::stringstream example_buff; 325 std::stringstream example_buff;
326 example_buff << exfile.rdbuf(); 326 // Start with a newline so the first line renders with same indentation as the rest
327 example_buff << std::endl << exfile.rdbuf();
327 328
328 if (!as_generator(scope_tab(scope_size) << "/// ").generate(sink, attributes::unused, context)) return false; 329 if (!as_generator(scope_tab(scope_size) << "/// ").generate(sink, attributes::unused, context)) return false;
329 if (!generate_opening_tag(sink, "example", context)) return false; 330 if (!generate_opening_tag(sink, "example", context)) return false;