aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2025-07-21 14:57:11 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2025-07-21 15:06:54 +0300
commit726f797d4613ba88b5b8cddea91765a768a3216d (patch)
tree2ae8a653edddf723f8ca021825371879dbec7e0d
parentfea05ea76fdac14746236e14bda98ce8cc29fb00 (diff)
downloadydb-726f797d4613ba88b5b8cddea91765a768a3216d.tar.gz
Intermediate changes
commit_hash:79973eb78ce6e4b413aca003d61d0ba4e90c0cca
-rw-r--r--yql/essentials/utils/docs/markdown.cpp1
-rw-r--r--yql/essentials/utils/docs/markdown_ut.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/yql/essentials/utils/docs/markdown.cpp b/yql/essentials/utils/docs/markdown.cpp
index 4af1357f1fe..5e614f8bdc5 100644
--- a/yql/essentials/utils/docs/markdown.cpp
+++ b/yql/essentials/utils/docs/markdown.cpp
@@ -24,6 +24,7 @@ namespace NSQLComplete {
onSection(std::move(Section_));
ResetSection(std::move(line));
} else {
+ line.append('\n');
Section_.Body.append(std::move(line));
}
}
diff --git a/yql/essentials/utils/docs/markdown_ut.cpp b/yql/essentials/utils/docs/markdown_ut.cpp
index 3f9d7acb2e3..15d69ed9e5d 100644
--- a/yql/essentials/utils/docs/markdown_ut.cpp
+++ b/yql/essentials/utils/docs/markdown_ut.cpp
@@ -64,12 +64,13 @@ FROM my_table;
UNIT_ASSERT_VALUES_EQUAL(sections[0].Header.Anchor, "#coalesce");
UNIT_ASSERT_STRING_CONTAINS(sections[0].Body, "Iterates");
UNIT_ASSERT_STRING_CONTAINS(sections[0].Body, "COALESCE");
+ UNIT_ASSERT_GE(Count(sections[0].Body, '\n'), 5);
UNIT_ASSERT_STRING_CONTAINS(sections[1].Header.Content, "Random");
UNIT_ASSERT_VALUES_EQUAL(sections[1].Header.Anchor, "#random");
UNIT_ASSERT_STRING_CONTAINS(sections[1].Body, "Generates");
UNIT_ASSERT_STRING_CONTAINS(sections[1].Body, "Random");
- UNIT_ASSERT_STRING_CONTAINS(sections[1].Body, "Random");
+ UNIT_ASSERT_GE(Count(sections[1].Body, '\n'), 5);
}
} // Y_UNIT_TEST_SUITE(MarkdownParserTests)