diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2017-05-16 00:23:48 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2017-05-16 00:23:48 -0600 |
| commit | 2b58c6b6fdab324e12eaddb3833568782898c889 (patch) | |
| tree | ac423554827e3e716b10216f414a6e9095354dda | |
| parent | f66e4d74ab953058a72f5a5ca71058efa91862c0 (diff) | |
remove trailing spaces in source
| -rw-r--r-- | Gemfile | 2 | ||||
| -rw-r--r-- | README-jp.adoc | 4 | ||||
| -rw-r--r-- | features/xref.feature | 4 | ||||
| -rw-r--r-- | lib/asciidoctor/abstract_block.rb | 2 | ||||
| -rw-r--r-- | lib/asciidoctor/converter/template.rb | 2 | ||||
| -rw-r--r-- | lib/asciidoctor/substitutors.rb | 2 | ||||
| -rw-r--r-- | test/extensions_test.rb | 4 | ||||
| -rw-r--r-- | test/lists_test.rb | 4 | ||||
| -rw-r--r-- | test/substitutions_test.rb | 2 |
9 files changed, 13 insertions, 13 deletions
@@ -18,7 +18,7 @@ group :development do end # enable this group to use Guard for continuous testing -# after removing comments, run `bundle install` then `guard` +# after removing comments, run `bundle install` then `guard` #group :guardtest do # gem 'guard' # gem 'guard-test' diff --git a/README-jp.adoc b/README-jp.adoc index ba4ce7ac..788a914b 100644 --- a/README-jp.adoc +++ b/README-jp.adoc @@ -148,7 +148,7 @@ TIP: Linuxパッケージマネージャを用いてインストールするこ [TIP] ==== もしAsciidoctorの以前のバージョンがインストール済みであれば, 以下によってアップデートできます: - + $ gem update asciidoctor もし gem update の代わりに `gem install` を使ってgemを新バージョンにした場合, 複数バージョンがインストールされるでしょう. @@ -199,7 +199,7 @@ Debian, UbuntuまたはMintにインストールするには, ターミナルを $ sudo apt-get install -y asciidoctor gemをアップグレードするには: - + $ sudo apt-get upgrade -y asciidoctor TIP: お使いのシステムは自動的にdebパッケージをアップデートするよう設定されているかも知れません.その場合, gemのアップデートのためにあなたがすべきことはありません. diff --git a/features/xref.feature b/features/xref.feature index c2ec2592..9dc6cbcf 100644 --- a/features/xref.feature +++ b/features/xref.feature @@ -11,9 +11,9 @@ Feature: Cross References |=== a|See <<_install>> |=== - + == Install - + Instructions go here. """ When it is converted to html diff --git a/lib/asciidoctor/abstract_block.rb b/lib/asciidoctor/abstract_block.rb index b768bef8..1884edc9 100644 --- a/lib/asciidoctor/abstract_block.rb +++ b/lib/asciidoctor/abstract_block.rb @@ -404,7 +404,7 @@ class AbstractBlock < AbstractNode # # IMPORTANT You must invoke this method on a node after removing # child sections or else the internal counters will be off. - # + # # Returns nothing def reindex_sections @next_section_index = 0 diff --git a/lib/asciidoctor/converter/template.rb b/lib/asciidoctor/converter/template.rb index 4308dfd4..e2bef8d0 100644 --- a/lib/asciidoctor/converter/template.rb +++ b/lib/asciidoctor/converter/template.rb @@ -246,7 +246,7 @@ module Asciidoctor elsif name.start_with? 'block_' name = name[6..-1] end - + template_class = ::Tilt extra_engine_options = {} case (ext_name = path_segments[-1]) diff --git a/lib/asciidoctor/substitutors.rb b/lib/asciidoctor/substitutors.rb index 2f56f5ac..268c352e 100644 --- a/lib/asciidoctor/substitutors.rb +++ b/lib/asciidoctor/substitutors.rb @@ -344,7 +344,7 @@ module Substitutors text.gsub SpecialCharsRx, SpecialCharsTr end else - def sub_specialchars text + def sub_specialchars text text.gsub(SpecialCharsRx) { SpecialCharsTr[$&] } end end diff --git a/test/extensions_test.rb b/test/extensions_test.rb index 72194b55..85c6afda 100644 --- a/test/extensions_test.rb +++ b/test/extensions_test.rb @@ -442,7 +442,7 @@ context 'Extensions' do context 'Integration' do test 'can provide extension registry as option' do registry = Asciidoctor::Extensions.create do - tree_processor SampleTreeProcessor + tree_processor SampleTreeProcessor end doc = document_from_string %(= Document Title\n\ncontent), :extension_registry => registry @@ -455,7 +455,7 @@ context 'Extensions' do test 'can provide extensions proc as option' do doc = document_from_string %(= Document Title\n\ncontent), :extensions => proc { - tree_processor SampleTreeProcessor + tree_processor SampleTreeProcessor } refute_nil doc.extensions assert_equal 1, doc.extensions.groups.size diff --git a/test/lists_test.rb b/test/lists_test.rb index 58874de7..562021a3 100644 --- a/test/lists_test.rb +++ b/test/lists_test.rb @@ -4411,7 +4411,7 @@ listing block in list item 1 doc = document_from_string input list = (doc.find_by :context => :ulist).first - assert_equal 3, list.items.size + assert_equal 3, list.items.size assert_equal 'one', list.items[0].text list.items[0].text = 'un' assert_equal 'un', list.items[0].text @@ -4427,7 +4427,7 @@ listing block in list item 1 doc = document_from_string input list = (doc.find_by :context => :ulist).first - assert_equal 4, list.items.size + assert_equal 4, list.items.size list.items[0].remove_sub :quotes assert_equal '*one*', list.items[0].text refute_includes list.items[0].subs, :quotes diff --git a/test/substitutions_test.rb b/test/substitutions_test.rb index 7d2316c5..214a0ac5 100644 --- a/test/substitutions_test.rb +++ b/test/substitutions_test.rb @@ -21,7 +21,7 @@ context 'Substitutions' do para = block_from_string %([%hardbreaks]\nthis\nis\n-> {program}) para.lines << '' para.lines << '' - para.document.attributes['program'] = 'Asciidoctor' + para.document.attributes['program'] = 'Asciidoctor' result = para.apply_subs(para.lines) assert_equal ['this<br>', 'is<br>', '→ Asciidoctor<br>', '<br>', ''], result result = para.apply_subs(para.lines * "\n") |
