online-judge-tools / verification-helper

a testing framework for snippet libraries used in competitive programming
MIT License
231 stars 56 forks source link

Extra `\n` in the code of the page generated by verification-helper when there is a comment in the C++ code #399

Closed hly1204 closed 2 years ago

hly1204 commented 2 years ago

Summary / 概要

Extra \n in the code of the page generated by verification-helper when there is a comment in the C++ code.

Steps to reproduce / 再現方法

use CI in GitHub action.

environments:

Expected behavior / 期待される挙動

It seems only happend in my repo. The page https://hly1204.github.io/library/datastructure/basic/Cartesian_tree.hpp has an extra \n after a comment, but the source code did't have the extra \n. All comments in the code will have an extra \n in the page rendered. Only comment like // will have the extra \n, /**/ won't.

Actual behavior / 実際の挙動

Other notes / その他

hly1204 commented 2 years ago

Sorry for my carelessness. This will happen when using eof=crlf in .gitattributes.