Fix document generator to remove trailing space in generated document.

Update generated document.
This commit is contained in:
take_cheeze
2014-05-10 22:08:40 +09:00
parent fb77b033a5
commit b03330b3e4
2 changed files with 4 additions and 16 deletions
-12
View File
@@ -806,12 +806,6 @@ ISO Code | Source File | C Function
--- | --- | ---
15.2.14.4.3 | src/range.c | mrb_range_beg
#### each
ISO Code | Source File | C Function
--- | --- | ---
15.2.14.4.4 | src/range.c | mrb_range_each
#### end
ISO Code | Source File | C Function
@@ -1372,12 +1366,6 @@ ISO Code | Source File | C Function
--- | --- | ---
15.3.1.3.3 | src/kernel.c | mrb_obj_id_m
#### __method__
ISO Code | Source File | C Function
--- | --- | ---
n/a | src/kernel.c | mrb_f_method
#### __send__
ISO Code | Source File | C Function
+4 -4
View File
@@ -96,8 +96,8 @@ CLASS
def print_method(io, met_name, met_hsh, cfg)
if cfg[:print_line_no]
line_no_head = '| Line'
line_no = "| #{find_c_func(met_hsh[:c_func])[:line_no]}"
line_no_head = ' | Line'
line_no = " | #{find_c_func(met_hsh[:c_func])[:line_no]}"
else
line_no, line_no_head = '', ''
end
@@ -109,9 +109,9 @@ CLASS
io.puts <<METHOD
#### #{met_name}
ISO Code | Source File | C Function #{line_no_head}
ISO Code | Source File | C Function#{line_no_head}
--- | --- | ---
#{iso} | #{file} | #{met_hsh[:c_func]} #{line_no}
#{iso} | #{file} | #{met_hsh[:c_func]}#{line_no}
METHOD
end