Skip to content

Commit 2800ca9

Browse files
committed
Remove unnecessary whitespace from import-custom.asc and add missing colons
1 parent 2a541c3 commit 2800ca9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

book/09-git-and-other-scms/sections/import-custom.asc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ end
7979

8080
Now that you have an integer representation of your commit, you need a date for the commit metadata.
8181
Because the date is expressed in the name of the directory, you'll parse it out.
82-
The next line in your `print_export` file is
82+
The next line in your `print_export` file is:
8383

8484
[source,ruby]
8585
----
8686
date = convert_dir_to_date(dir)
8787
----
8888

89-
where `convert_dir_to_date` is defined as
89+
where `convert_dir_to_date` is defined as:
9090

9191
[source,ruby]
9292
----
@@ -220,7 +220,6 @@ def convert_dir_to_mark(dir)
220220
($marks.index(dir)+1).to_s
221221
end
222222
223-
224223
def convert_dir_to_date(dir)
225224
if dir == 'current'
226225
return Time.now().to_i
@@ -259,7 +258,6 @@ def print_export(dir, last_mark)
259258
mark
260259
end
261260
262-
263261
# Loop through the directories
264262
last_mark = nil
265263
Dir.chdir(ARGV[0]) do

0 commit comments

Comments
 (0)