Skip to content

Commit 8a57a93

Browse files
committed
Remove trailing whitespace from highlighted code
1 parent 95cdb22 commit 8a57a93

File tree

37 files changed

+90
-90
lines changed

37 files changed

+90
-90
lines changed

bg/about/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ y = 5.plus 6
9393
програмиране.
9494

9595
{% highlight ruby %}
96-
search_engines =
96+
search_engines =
9797
%w[Google Yahoo MSN].map do |engine|
9898
"http://www." + engine.downcase + ".com"
9999
end

bg/documentation/ruby-from-other-languages/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ irb(main):002:1> # public by default
140140
irb(main):003:1* def func
141141
irb(main):004:2> 99
142142
irb(main):005:2> end
143-
irb(main):006:1>
143+
irb(main):006:1>
144144
irb(main):007:1* def ==(other)
145145
irb(main):008:2> func == other.func
146146
irb(main):009:2> end
147147
irb(main):010:1> end
148148
=> nil
149-
irb(main):011:0>
149+
irb(main):011:0>
150150
irb(main):012:0* t1 = Test.new
151151
=> #<Test:0x34ab50>
152152
irb(main):013:0> t2 = Test.new
@@ -223,7 +223,7 @@ other_car.inspect # => Cheap car
223223
# id is the name of the method called, the * syntax collects
224224
# all the arguments in an array named 'arguments'
225225
def method_missing( id, *arguments )
226-
puts "Method #{id} was called, but not found. It has " +
226+
puts "Method #{id} was called, but not found. It has " +
227227
"these arguments: #{arguments.join(", ")}"
228228
end
229229

de/about/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Blöcke sind durch funktionale Programmiersprachen inspiriert. Matz sagt:
113113
bewahren<sup>[4](#fn4)</sup>.”
114114

115115
{% highlight ruby %}
116-
search_engines =
116+
search_engines =
117117
%w[Google Yahoo MSN].map do |engine|
118118
"http://www." + engine.downcase + ".com"
119119
end

de/documentation/quickstart/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Ausdrucks mit. Wenn wir “Hallo, Welt!” auf den Bildschirm ausgeben
4545
wollen, müssen wir ein bisschen mehr tun:
4646

4747
{% highlight ruby %}
48-
irb(main):002:0> puts "Hallo, Welt!"
48+
irb(main):002:0> puts "Hallo, Welt!"
4949
Hallo, Welt!
5050
=> nil
5151
{% endhighlight %}

de/documentation/ruby-from-other-languages/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,13 @@ irb(main):002:1> # normalerweise "public"
266266
irb(main):003:1* def func
267267
irb(main):004:2> 99
268268
irb(main):005:2> end
269-
irb(main):006:1>
269+
irb(main):006:1>
270270
irb(main):007:1* def ==(other)
271271
irb(main):008:2> func == other.func
272272
irb(main):009:2> end
273273
irb(main):010:1> end
274274
=> nil
275-
irb(main):011:0>
275+
irb(main):011:0>
276276
irb(main):012:0* t1 = Test.new
277277
=> #<Test:0x34ab50>
278278
irb(main):013:0> t2 = Test.new

en/about/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Blocks are inspired by functional languages. Matz said, “in Ruby
107107
closures, I wanted to respect the Lisp culture<sup>[4](#fn4)</sup>.”
108108

109109
{% highlight ruby %}
110-
search_engines =
110+
search_engines =
111111
%w[Google Yahoo MSN].map do |engine|
112112
"http://www." + engine.downcase + ".com"
113113
end

en/documentation/ruby-from-other-languages/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,13 @@ irb(main):002:1> # public by default
235235
irb(main):003:1* def func
236236
irb(main):004:2> 99
237237
irb(main):005:2> end
238-
irb(main):006:1>
238+
irb(main):006:1>
239239
irb(main):007:1* def ==(other)
240240
irb(main):008:2> func == other.func
241241
irb(main):009:2> end
242242
irb(main):010:1> end
243243
=> nil
244-
irb(main):011:0>
244+
irb(main):011:0>
245245
irb(main):012:0* t1 = Test.new
246246
=> #<Test:0x34ab50>
247247
irb(main):013:0> t2 = Test.new
@@ -330,7 +330,7 @@ better fit your application, and many libraries do. Here is an example:
330330
# id is the name of the method called, the * syntax collects
331331
# all the arguments in an array named 'arguments'
332332
def method_missing( id, *arguments )
333-
puts "Method #{id} was called, but not found. It has " +
333+
puts "Method #{id} was called, but not found. It has " +
334334
"these arguments: #{arguments.join(", ")}"
335335
end
336336

es/about/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Los bloques están inspirados por los lenguajes funcionales. Matz dijo,
114114
Lisp<sup>[4](#fn4)</sup>”.
115115

116116
{% highlight ruby %}
117-
motores_de_busqueda =
117+
motores_de_busqueda =
118118
%w[Google Yahoo MSN].map do |motor|
119119
"http://www." + motor.downcase + ".com"
120120
end

es/documentation/quickstart/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ evaluada. Si queremos que el programa escriba “Hola Mundo” necesitamos
4545
un poco más:
4646

4747
{% highlight ruby %}
48-
irb(main):002:0> puts "Hola Mundo"
49-
Hola Mundo
48+
irb(main):002:0> puts "Hola Mundo"
49+
Hola Mundo
5050
=> nil
5151
{% endhighlight %}
5252

es/documentation/ruby-from-other-languages/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -258,13 +258,13 @@ irb(main):002:1> # public por defecto
258258
irb(main):003:1* def func
259259
irb(main):004:2> 99
260260
irb(main):005:2> end
261-
irb(main):006:1>
261+
irb(main):006:1>
262262
irb(main):007:1* def ==(otro)
263263
irb(main):008:2> func == otro.func
264264
irb(main):009:2> end
265265
irb(main):010:1> end
266266
=> nil
267-
irb(main):011:0>
267+
irb(main):011:0>
268268
irb(main):012:0* t1 = Test.new
269269
=> #<Test:0x34ab50>
270270
irb(main):013:0> t2 = Test.new
@@ -364,7 +364,7 @@ Aquí tienes un ejemplo:
364364
# id es el nombre del método invocado, la sintaxis * recolecta
365365
# todos los argumentos en un array llamado 'argumentos'
366366
def method_missing( id, *argumentos )
367-
puts "El método #{id} fue invocado, pero no existe. Tiene " +
367+
puts "El método #{id} fue invocado, pero no existe. Tiene " +
368368
"estos argumentos: #{argumentos.join(", ")}"
369369
end
370370

fr/about/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ a dit à ce propos : « en créant les *closures* de Ruby, je souhaitais
131131
respecter la voie tracée par Lisp<sup>[4](#fn4)</sup>. »
132132

133133
{% highlight ruby %}
134-
search_engines =
134+
search_engines =
135135
%w[Google Yahoo MSN].map do |moteur|
136136
"http://www." + moteur.downcase + ".com"
137137
end

fr/documentation/quickstart/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ voulons véritablement *écrire* « Hello World », il en faut un tout petit
5454
peu plus :
5555

5656
{% highlight ruby %}
57-
irb(main):002:0> puts "Hello World"
58-
Hello World
57+
irb(main):002:0> puts "Hello World"
58+
Hello World
5959
=> nil
6060
{% endhighlight %}
6161

fr/documentation/ruby-from-other-languages/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,13 @@ irb(main):002:1> # publique par défaut
256256
irb(main):003:1* def func
257257
irb(main):004:2> 99
258258
irb(main):005:2> end
259-
irb(main):006:1>
259+
irb(main):006:1>
260260
irb(main):007:1* def ==(other)
261261
irb(main):008:2> func == other.func
262262
irb(main):009:2> end
263263
irb(main):010:1> end
264264
=> nil
265-
irb(main):011:0>
265+
irb(main):011:0>
266266
irb(main):012:0* t1 = Test.new
267267
=> #<Test:0x34ab50>
268268
irb(main):013:0> t2 = Test.new
@@ -363,7 +363,7 @@ bibliothèques exploitent cette possibilité. Voici un exemple :
363363
# id est le nom de la méthode appelée, la syntaxe * renvoie
364364
# tous les paramètres dans un tableau nommé « arguments »
365365
def method_missing( id, *arguments )
366-
puts "La méthode #{id} a été appelée, mais elle n'existe pas. " +
366+
puts "La méthode #{id} a été appelée, mais elle n'existe pas. " +
367367
"Voici les paramètres de l'appel : #{arguments.join(", ")}"
368368
end
369369

id/about/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Blok terinspirasi dari bahasa-bahasa fungsional. Matz berkata, “Saya
114114
ingin menghormati kultur Lisp di closure Ruby<sup>[4](#fn4)</sup>.”
115115

116116
{% highlight ruby %}
117-
search_engines =
117+
search_engines =
118118
%w[Google Yahoo MSN].map do |engine|
119119
"http://www." + engine.downcase + ".com"
120120
end

id/documentation/quickstart/3/index.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ Jadi metode-metode apa yang sebetulnya ada pada obyek TukangSapa?
4343

4444
{% highlight ruby %}
4545
irb(main):018:0> TukangSapa.instance_methods
46-
=> ["inspect", "clone", "method", "public_methods",
47-
"instance_variable_defined?", "equal?", "freeze", "methods",
48-
"respond_to?", "dup", "instance_variables", "__id__",
49-
"object_id", "eql?", "id", "singleton_methods",
50-
"send", "taint", "frozen?", "instance_variable_get",
51-
"__send__", "instance_of?", "to_a", "say_hai",
52-
"type", "protected_methods", "instance_eval", "==",
53-
"display", "===", "instance_variable_set", "kind_of?",
54-
"extend", "to_s", "say_bye", "hash", "class",
55-
"tainted?", "=~", "private_methods", "nil?",
46+
=> ["inspect", "clone", "method", "public_methods",
47+
"instance_variable_defined?", "equal?", "freeze", "methods",
48+
"respond_to?", "dup", "instance_variables", "__id__",
49+
"object_id", "eql?", "id", "singleton_methods",
50+
"send", "taint", "frozen?", "instance_variable_get",
51+
"__send__", "instance_of?", "to_a", "say_hai",
52+
"type", "protected_methods", "instance_eval", "==",
53+
"display", "===", "instance_variable_set", "kind_of?",
54+
"extend", "to_s", "say_bye", "hash", "class",
55+
"tainted?", "=~", "private_methods", "nil?",
5656
"untaint", "is_a?"]
5757
{% endhighlight %}
5858

@@ -114,7 +114,7 @@ irb(main):028:0> t.respond_to?('name')
114114
=> true
115115
irb(main):029:0> t.respond_to?('name=')
116116
=> true
117-
irb(main):030:0> t.say_hai
117+
irb(main):030:0> t.say_hai
118118
Hai Hendy!
119119
=> nil
120120
irb(main):031:0> t.name='Yohanes'
@@ -195,7 +195,7 @@ if __FILE__ == $0
195195
mg.say_bye
196196

197197
# Ganti name menjadi array name
198-
mg.names = ["Steven", "Anton", "Ridho",
198+
mg.names = ["Steven", "Anton", "Ridho",
199199
"Matz", "Bos"]
200200
mg.say_hai
201201
mg.say_bye

id/documentation/quickstart/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ terakhir yang dievaluasi/dijalankan. Jika kita ingin print “Hello World”
4545
kita perlu tambahkan sedikit:
4646

4747
{% highlight ruby %}
48-
irb(main):002:0> puts "Hello World"
49-
Hello World
48+
irb(main):002:0> puts "Hello World"
49+
Hello World
5050
=> nil
5151
{% endhighlight %}
5252

id/documentation/ruby-from-other-languages/index.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -268,20 +268,20 @@ irb(main):002:1> # metode berikut secara default adalah public
268268
irb(main):003:1* def func
269269
irb(main):004:2> 99
270270
irb(main):005:2> end
271-
irb(main):006:1>
271+
irb(main):006:1>
272272
irb(main):007:1* def ==(other)
273273
irb(main):008:2> func == other.func
274274
irb(main):009:2> end
275275
irb(main):010:1> end
276276
=> nil
277-
irb(main):011:0>
277+
irb(main):011:0>
278278
irb(main):012:0* t1 = Test.new
279279
=> #<Test:0x34ab50>
280280
irb(main):013:0> t2 = Test.new
281281
=> #<Test:0x342784>
282282
irb(main):014:0> t1 == t2
283283
=> true
284-
irb(main):015:0> # sekarang atur `func` menjadi protected,
284+
irb(main):015:0> # sekarang atur `func` menjadi protected,
285285
irb(main):016:0* # masih jalan karena protected bisa reference ke lain
286286
irb(main):017:0* class Test
287287
irb(main):018:1> protected :func
@@ -376,20 +376,20 @@ daftar parameternya. Secara *default*, `method_missing` membangkitkan
376376
dan banyak *library* yang melakukan hal yang sama. Contoh:
377377

378378
{% highlight ruby %}
379-
# id adalah nama metode yang dipanggil,
379+
# id adalah nama metode yang dipanggil,
380380
# sintaks * mengumpulkan semua arguments
381381
# dalam array yang bernama 'arguments'
382382
def method_missing( id, *arguments )
383-
puts "Metode #{id} telah dipanggil, " +
383+
puts "Metode #{id} telah dipanggil, " +
384384
"tetapi tidak ditemukan. " +
385385
"Metode ini punya arguments sebagai berikut: " +
386386
arguments.join(", ")
387387
end
388388

389389
__ :a, :b, 10
390390

391-
# => Metode __ telah dipanggil, tetapi metode __
392-
# tidak berhasil ditemukan. Metode tersebut
391+
# => Metode __ telah dipanggil, tetapi metode __
392+
# tidak berhasil ditemukan. Metode tersebut
393393
# memiliki argument sebagai berikut: a, b, 10
394394
{% endhighlight %}
395395

@@ -448,7 +448,7 @@ kelas Fixnum:
448448

449449
{% highlight ruby %}
450450
class Fixnum
451-
# Sebenarnya Anda bisa melakukan ini,
451+
# Sebenarnya Anda bisa melakukan ini,
452452
# tetapi tolong jangan lakukan ini
453453
def +( other )
454454
self - other

id/documentation/ruby-from-other-languages/to-ruby-from-c-and-c-/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Berikut ini adalah contoh program untuk menjumlahkan dua angka
4444
{% highlight python %}
4545
#include <stdio.h>
4646

47-
int main(int argc, char *argv[])
47+
int main(int argc, char *argv[])
4848
{
4949
int a, b, c;
5050

id/news/_posts/2008-05-28-21-trik-trik-ruby.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ b = %w{c d}
105105
Contoh dengan Hash:
106106

107107
{% highlight ruby %}
108-
a = { :name => "ArieKeren", :age => 27 }
108+
a = { :name => "ArieKeren", :age => 27 }
109109
# => {:name=>"ArieKeren", :age=>27}
110110

111111
[a]
@@ -149,7 +149,7 @@ dahsyat):
149149

150150
{% highlight ruby %}
151151
does = is = { true => 'Yes', false => 'No' }
152-
does[10 == 50]
152+
does[10 == 50]
153153
# => “No”
154154

155155
is[10 > 5]

it/about/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ I blocchi sono stati ispirati dai linguaggi funzionali. Matz ha detto,
113113
Lisp<sup>[4](#fn4)</sup>.”
114114

115115
{% highlight ruby %}
116-
motori_di_ricerca =
116+
motori_di_ricerca =
117117
%w[Google Yahoo MSN].map do |sito|
118118
"http://www." + sito.downcase + ".com"
119119
end

it/documentation/quickstart/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ Se vogliamo stampare a schermo “Ciao Mondo” dobbiamo aggiungere qualcosa
4444
in più:
4545

4646
{% highlight ruby %}
47-
irb(main):002:0> puts "Ciao Mondo"
48-
Ciao Mondo
47+
irb(main):002:0> puts "Ciao Mondo"
48+
Ciao Mondo
4949
=> nil
5050
{% endhighlight %}
5151

it/documentation/ruby-from-other-languages/index.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,13 @@ irb(main):002:1> # public per default
245245
irb(main):003:1* def func
246246
irb(main):004:2> 99
247247
irb(main):005:2> end
248-
irb(main):006:1>
248+
irb(main):006:1>
249249
irb(main):007:1* def ==(other)
250250
irb(main):008:2> func == other.func
251251
irb(main):009:2> end
252252
irb(main):010:1> end
253253
=> nil
254-
irb(main):011:0>
254+
irb(main):011:0>
255255
irb(main):012:0* t1 = Test.new
256256
=> #<Test:0x34ab50>
257257
irb(main):013:0> t2 = Test.new
@@ -347,15 +347,15 @@ molte librerie. Ecco un esempio:
347347

348348
{% highlight ruby %}
349349
# id è il nome del metodo chiamato, l'asterisco
350-
# fa si che tutti gli argomenti del metodo siano
350+
# fa si che tutti gli argomenti del metodo siano
351351
# immagazzinati in un array chiamato 'argomenti'
352352
def method_missing( id, *argomenti )
353-
puts "Il metodo #{id} è inesistente - è stato chiamato con " +
353+
puts "Il metodo #{id} è inesistente - è stato chiamato con " +
354354
"i seguenti argomenti: #{argomenti.join(", ")}"
355355
end
356356

357357
__ :a, :b, 10
358-
# => l metodo #{id} è inesistente - è stato chiamato
358+
# => l metodo #{id} è inesistente - è stato chiamato
359359
# con i seguenti argomenti: a, b, 10
360360
{% endhighlight %}
361361

0 commit comments

Comments
 (0)