From: Xavi Artigas Date: Thu, 11 Apr 2019 11:18:33 +0000 (+0200) Subject: mono-docs: Properly indent code examples X-Git-Tag: accepted/tizen/unified/20190419.020103~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67bb250f17a8491876729526eba88f13df2a515e;p=platform%2Fupstream%2Fefl.git 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 tag so all code lines have the same indentation. --- diff --git a/src/bin/eolian_mono/eolian/mono/documentation.hh b/src/bin/eolian_mono/eolian/mono/documentation.hh index 0460b57..d603e0b 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 // There is no example file for this class or method, just return if (!exfile.good()) return true; std::stringstream example_buff; - example_buff << exfile.rdbuf(); + // Start with a newline so the first line renders with same indentation as the rest + example_buff << std::endl << exfile.rdbuf(); if (!as_generator(scope_tab(scope_size) << "/// ").generate(sink, attributes::unused, context)) return false; if (!generate_opening_tag(sink, "example", context)) return false;