Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 173b18b

Browse files
committed
add a single empty line between the block comments and the single line comments.
1 parent 758fd07 commit 173b18b

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

templates/codeonly.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ ${comment.line} @lc app=${app} id=${fid} lang=${lang}
33
${comment.line}
44
${comment.line} [${fid}] ${name}
55
${comment.end}
6+
67
${comment.singleLine} @lc code=start
78
${code}
89
${comment.singleLine} @lc code=end

templates/detailed.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ${comment.line} Testcase Example: ${testcase}
1515
${comment.line}
1616
{{ desc.forEach(function(x) { }}${comment.line} ${x}
1717
{{ }) }}${comment.end}
18+
1819
${comment.singleLine} @lc code=start
1920
${code}
2021
${comment.singleLine} @lc code=end

test/test_core.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ describe('core', function() {
159159
' *',
160160
' * [2] Add Two Numbers',
161161
' */',
162+
'',
162163
'// @lc code=start',
163164
'/**',
164165
' * Definition for singly-linked list.',
@@ -196,6 +197,7 @@ describe('core', function() {
196197
' *',
197198
' * [2] Add Two Numbers',
198199
' */',
200+
'',
199201
'// @lc code=start',
200202
'/**',
201203
' * Definition for singly-linked list.',
@@ -250,6 +252,7 @@ describe('core', function() {
250252
' * Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)',
251253
' * Output: 7 -> 0 -> 8',
252254
' */',
255+
'',
253256
'// @lc code=start',
254257
'/**',
255258
' * Definition for singly-linked list.',
@@ -304,6 +307,7 @@ describe('core', function() {
304307
'# Input: (2 -> 4 -> 3) + (5 -> 6 -> 4)',
305308
'# Output: 7 -> 0 -> 8',
306309
'#',
310+
'',
307311
'# @lc code=start',
308312
'# Definition for singly-linked list.',
309313
'# class ListNode',

0 commit comments

Comments
 (0)