Skip to content

Commit 38c2fb1

Browse files
author
Matthias Rabe
committed
whitespace cleanup
Signed-off-by: Matthias Rabe <[email protected]>
1 parent 2c6d1be commit 38c2fb1

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

lib/ged_parse.inc.rb

+9-9
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module GedParse
2727
class GedDetailList
2828
attr_reader :list
2929

30-
def initialize
30+
def initialize
3131
@list= []
3232
end
3333

@@ -48,7 +48,7 @@ def add_detail(level, tag, val)
4848
when "CONT" then last_detail[:value]= last_detail[:value].to_s + "\n" + val.to_s
4949
when "CONC" then last_detail[:value]= last_detail[:value].to_s + val.to_s
5050
else
51-
h[:field]= last_detail[:field] + '_' + tag.to_s
51+
h[:field]= last_detail[:field] + '_' + tag.to_s
5252
last_detail[:children].push h
5353
end
5454
end
@@ -229,7 +229,7 @@ def initialize(file_name)
229229
refresh
230230
end
231231

232-
def refresh
232+
def refresh
233233
@individuals= []
234234
@families= []
235235
@notes= []
@@ -270,7 +270,7 @@ def refresh
270270
when "INDI" then @individuals.push section if section
271271
when "FAM" then @families.push section if section
272272
when "NOTE" then @notes.push section if section
273-
else
273+
else
274274
@sections.push section if section
275275
end
276276

@@ -284,7 +284,7 @@ def refresh
284284
#create a family
285285
section= Family.new(tag)
286286
section_type= 'FAM'
287-
else
287+
else
288288
#create a general section
289289
if not rest.nil? and rest[0..3] == "NOTE"
290290
section= Note.new(tag)
@@ -326,14 +326,14 @@ def refresh
326326
end
327327
end
328328
end
329-
end
329+
end
330330

331331
# add the last section
332-
case section_type
332+
case section_type
333333
when "INDI" then @individuals.push section if section
334334
when "FAM" then @families.push section if section
335335
when "NOTE" then @notes.push section if section
336-
else
336+
else
337337
@sections.push section if section
338338
end
339339

@@ -358,7 +358,7 @@ def find_by_family_gid(gid)
358358

359359
def find_by_individual_gid(gid)
360360
@individuals.each do |i|
361-
return i if i.gid == gid
361+
return i if i.gid == gid
362362
end
363363
return nil
364364
end

lib/latex.inc.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def self.open(*)
6565
\\usepackage{color}
6666
\\usepackage{graphics}
6767
\\usepackage{graphicx}
68-
\\usepackage{ucs}
68+
\\usepackage{ucs}
6969
\\usepackage[utf8x]{inputenc}
7070
\\PrerenderUnicode{ö}
7171
\\usepackage{multirow}
@@ -79,7 +79,7 @@ def self.open(*)
7979
\\usepackage{calc}
8080
\\usetikzlibrary{shapes,trees,arrows}
8181
\\usepackage{geometry}
82-
\\geometry{a4paper,left=20mm,right=20mm, top=10mm, bottom=25mm}
82+
\\geometry{a4paper,left=20mm,right=20mm, top=10mm, bottom=25mm}
8383
8484
\\newcommand{\\HRule}{\\rule{\\linewidth}{0.5mm}}
8585
\\newcommand{\\ThinHRule}{\\rule{\\linewidth}{0.1mm}}
@@ -98,17 +98,17 @@ def insertTitle(params)
9898
print """
9999
\\begin{titlepage}
100100
\\begin{center}
101-
101+
102102
\\vspace*{3cm}
103103
\\HRule \\\\[0.4cm]
104104
{\\huge \\bfseries #{h(params[:main])}}\\\\[0.4cm]
105105
\\HRule \\\\[2cm]
106-
106+
107107
\\vfill
108-
108+
109109
% Bottom of the page
110110
{\\large #{h(params[:foot])}}
111-
111+
112112
\\end{center}
113113
\\end{titlepage}
114114
"""

reports/book.inc.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def t1(a); return (a.idno.to_s == "" ? (1000000+(a.gid[2..-1].to_i)) : a.idno.to
5050
raise "error while generating seperator" if not report_separator("Personen") if indis.size > 0
5151
indis.each_with_index {|indi, i|
5252
if not report_person(ged, indi)
53-
$stderr.print "error while generating pages for #{indi.name}(#{indi.gid})"
53+
$stderr.print "error while generating pages for #{indi.name}(#{indi.gid})"
5454
return(false)
5555
end
5656
}
@@ -91,7 +91,7 @@ def report_person(ged, indi)
9191
$stderr.print "error while printing profile for #{indi.name}(#{indi.gid})\n"
9292
return(false)
9393
end
94-
94+
9595
if not report_person_print_tree(ged, indi, own_fams)
9696
$stderr.print "error while printing family tree for #{indi.name}(#{indi.gid})\n"
9797
return(false)
@@ -221,7 +221,7 @@ def t2(f)
221221

222222
own_fams.each_with_index {|fam, i|
223223
matrix= []; 7.times {matrix << []}
224-
path= []
224+
path= []
225225
line= []
226226

227227
if not indi_ancs.nil?

0 commit comments

Comments
 (0)