diff options
author | zhvv117 <[email protected]> | 2024-12-10 22:42:11 +0300 |
---|---|---|
committer | zhvv117 <[email protected]> | 2024-12-10 22:59:27 +0300 |
commit | c415f030b477653db847de5dbc58cb579267c1da (patch) | |
tree | 2c443bd0edd2f927aaa0223b8e1833718d971514 /yql/essentials/sql/v1/format/sql_format.cpp | |
parent | bcedee4e703dcb7dc36789e988c6a9b9b0219e7e (diff) |
fix additional newline after comment
commit_hash:63dc64fc9bf73bb1dd98c368466227fe72c5391c
Diffstat (limited to 'yql/essentials/sql/v1/format/sql_format.cpp')
-rw-r--r-- | yql/essentials/sql/v1/format/sql_format.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yql/essentials/sql/v1/format/sql_format.cpp b/yql/essentials/sql/v1/format/sql_format.cpp index c029f6e3ad5..f8e20849fd2 100644 --- a/yql/essentials/sql/v1/format/sql_format.cpp +++ b/yql/essentials/sql/v1/format/sql_format.cpp @@ -562,6 +562,10 @@ private: WriteComments(true); } + if (AfterComment && Comments[LastComment - 1].Content.StartsWith("--")) { + return; + } + if (OutColumn) { Out('\n'); } |