testFormatting(text);
}
+TEST_F(HelpWriterContextTest, FormatsLiteralTextWithIndentation)
+{
+ const char *const text[] = {
+ "Sample paragraph::",
+ "",
+ " literal block",
+ " another indented line",
+ "",
+ "Normal paragraph",
+ "with wrapping"
+ };
+ testFormatting(text);
+}
+
TEST_F(HelpWriterContextTest, FormatsBulletList)
{
const char *const text[] = {
TEST_F(HelpWriterContextTest, FormatsTitles)
{
- // Console formatting does not currently work without the paragraph breaks
- // after the title.
const char *const text[] = {
"Title",
"=====",
- "",
"Some text without spacing",
"",
"Subtitle",