Skip to content

Commit b867d07

Browse files
committed
Whitespace cleanup (courtesy of emacs)
1 parent 2870a3d commit b867d07

File tree

1 file changed

+20
-21
lines changed

1 file changed

+20
-21
lines changed

src/registry.jl

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -35,45 +35,45 @@ add_format(format"WPG", UInt8[0xff,0x57,0x50,0x43], ".wpg",
3535
add_format(format"Imagine", "IMAGINE", ".imagine", [:ImagineFormat])
3636

3737
add_format(
38-
format"TGA",
38+
format"TGA",
3939
(),
40-
".tga",
41-
[:OSXNativeIO, LOAD, OSX],
40+
".tga",
41+
[:OSXNativeIO, LOAD, OSX],
4242
[:ImageMagick]
4343
)
4444
add_format(
45-
format"GIF",
45+
format"GIF",
4646
UInt8[0x47,0x49,0x46,0x38],
47-
".gif",
48-
[:OSXNativeIO, LOAD, OSX],
47+
".gif",
48+
[:OSXNativeIO, LOAD, OSX],
4949
[:ImageMagick]
5050
)
5151
add_format(
52-
format"PNG",
53-
UInt8[0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a],
54-
".png",
55-
[:OSXNativeIO, LOAD, OSX],
52+
format"PNG",
53+
UInt8[0x89,0x50,0x4e,0x47,0x0d,0x0a,0x1a,0x0a],
54+
".png",
55+
[:OSXNativeIO, LOAD, OSX],
5656
[:ImageMagick]
5757
)
5858
add_format(
59-
format"TIFF",
60-
(UInt8[0x4d,0x4d,0x00,0x2a], UInt8[0x4d,0x4d,0x00,0x2b], UInt8[0x49,0x49,0x2a,0x00]),
61-
[".tiff", ".tif"],
62-
[:OSXNativeIO, LOAD, OSX],
59+
format"TIFF",
60+
(UInt8[0x4d,0x4d,0x00,0x2a], UInt8[0x4d,0x4d,0x00,0x2b], UInt8[0x49,0x49,0x2a,0x00]),
61+
[".tiff", ".tif"],
62+
[:OSXNativeIO, LOAD, OSX],
6363
[:ImageMagick]
6464
)
6565
add_format(
66-
format"JPEG",
66+
format"JPEG",
6767
UInt8[0xff,0xd8,0xff],
68-
[".jpeg", ".jpg", ".JPG"],
69-
[:OSXNativeIO, LOAD, OSX],
68+
[".jpeg", ".jpg", ".JPG"],
69+
[:OSXNativeIO, LOAD, OSX],
7070
[:ImageMagick]
7171
) # 0xe1
7272
add_format(
73-
format"BMP",
73+
format"BMP",
7474
UInt8[0x42,0x4d],
7575
".bmp",
76-
[:OSXNativeIO, LOAD, OSX],
76+
[:OSXNativeIO, LOAD, OSX],
7777
[:ImageMagick]
7878
)
7979

@@ -147,7 +147,7 @@ function detect_stlbinary(io)
147147
len = position(io)
148148
seekstart(io)
149149
len < size_header && return false
150-
150+
151151
skip(io, 80) # skip header
152152
number_of_triangle_blocks = read(io, UInt32)
153153
#1 normal, 3 vertices in Float32 + attrib count, usually 0
@@ -161,4 +161,3 @@ function detect_stlbinary(io)
161161
end
162162
add_format(format"STL_ASCII", detect_stlascii, [".stl", ".STL"], [:MeshIO])
163163
add_format(format"STL_BINARY", detect_stlbinary, [".stl", ".STL"], [:MeshIO])
164-

0 commit comments

Comments
 (0)