File tree Expand file tree Collapse file tree 6 files changed +11
-21
lines changed
examples/render-mandoc/docs Expand file tree Collapse file tree 6 files changed +11
-21
lines changed Original file line number Diff line number Diff line change 1
1
.\" Automatically generated by Pandoc 3.2
2
2
.\"
3
- .TH "download" "1" "July 2025" "Version 0.1.0" "Sample application"
3
+ .TH "download" "1" "August 2025" "Version 0.1.0" "Sample application"
4
4
.SH NAME
5
5
\f[B] download \f[ R ] \- Sample application
6
6
.SH SYNOPSIS
Original file line number Diff line number Diff line change 1
1
% download(1) Version 0.1.0 | Sample application
2
2
% Lana Lang
3
- % July 2025
3
+ % August 2025
4
4
5
5
NAME
6
6
==================================================
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ def base_code
27
27
end
28
28
29
29
def clean_code ( script )
30
- script . remove_private_comments
31
- formatter = Formatter . new script , mode : Settings . formatter
30
+ result = script . remove_private_comments
31
+ formatter = Formatter . new result , mode : Settings . formatter
32
32
formatter . formatted_script
33
33
end
34
34
Original file line number Diff line number Diff line change @@ -44,4 +44,4 @@ ISSUE TRACKER
44
44
AUTHORS
45
45
Lana Lang.
46
46
47
- Version 0.1.0 July 2025 download(1)
47
+ Version 0.1.0 August 2025 download(1)
Original file line number Diff line number Diff line change @@ -51,5 +51,5 @@ Examples:
51
51
52
52
Stack trace:
53
53
from ./download:15 in `root_command`
54
- from ./download:260 in `run`
55
- from ./download:266 in `main`
54
+ from ./download:259 in `run`
55
+ from ./download:265 in `main`
Original file line number Diff line number Diff line change 125
125
end
126
126
end
127
127
128
- describe '#lint' do
129
- context 'with a string that contains multiple consecutive newlines' do
130
- subject { "one\n two\n \n three\n \n \n four\n \n \n \n " }
128
+ describe '#remove_private_comments' do
129
+ subject { "this is important\n ## SECRET\n ## ANOTHER SECRET\n also important\n " }
131
130
132
- it 'replaces two or more newlines with two newlines' do
133
- expect ( subject . lint ) . to eq "one\n two\n \n three\n \n four\n \n "
134
- end
135
- end
136
-
137
- context 'with a string that contains double-hash comments' do
138
- subject { "this is important\n ## SECRET\n ## ANOTHER SECRET\n also important\n " }
139
-
140
- it 'removes these comments' do
141
- expect ( subject . lint ) . to eq "this is important\n also important\n "
142
- end
131
+ it 'removes these comments' do
132
+ expect ( subject . remove_private_comments ) . to eq "this is important\n also important\n "
143
133
end
144
134
end
145
135
You can’t perform that action at this time.
0 commit comments