From 3bebe9e66d8a57f92be3b1591df0794ed31be78d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Fri, 30 Jul 2021 00:56:58 +0300 Subject: *: delete trailing whitespace --- NEWS | 4 +-- data/freedesktop.org.xml.in | 2 +- data/shared-mime-info-spec.xml | 70 +++++++++++++++++++++--------------------- data/update-mime-database.1 | 1 - tests/mime-detection/list | 6 ++-- 5 files changed, 41 insertions(+), 42 deletions(-) diff --git a/NEWS b/NEWS index 054b9783..a18c6b56 100644 --- a/NEWS +++ b/NEWS @@ -917,7 +917,7 @@ shared-mime-info 0.15 (2004-08-30) - Added application/x-javascripta * Translations: -- new translations: Danish (Ole Laursen), Greek (Nikos Charonitakis), +- new translations: Danish (Ole Laursen), Greek (Nikos Charonitakis), Korean (Cha Young-Ho) - updated translations: Finnish (Ville Skyttä), German (Christian Neumair) @@ -979,7 +979,7 @@ shared-mime-info 0.15 (2004-08-30) * Ignore trailing '/' characters on MIME directory name. - + Version 0.11 (17-Apr-2003) * 'make install' validates the common types file against the DTD. diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 2ce69217..01e19609 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -5961,7 +5961,7 @@ command to generate the output files. WarpScript source code - + ACE archive diff --git a/data/shared-mime-info-spec.xml b/data/shared-mime-info-spec.xml index f0a6fe39..06358cfa 100644 --- a/data/shared-mime-info-spec.xml +++ b/data/shared-mime-info-spec.xml @@ -346,11 +346,11 @@ is no specific icon (see icon for how these are found). T used for categories of similar types (like spreadsheets or archives) that can use a common icon. The Icon Naming Specification lists a set of such icon names. If this element is not specified then the mimetype is used to generate the generic icon by using the top-level media type (e.g. -"video" in "video/ogg") and appending "-x-generic" (i.e. "video-x-generic" in the previous example). +"video" in "video/ogg") and appending "-x-generic" (i.e. "video-x-generic" in the previous example). Only one generic-icon element is allowed. -root-XML elements have namespaceURI +root-XML elements have namespaceURI and localName attributes. If a file is identified as being an XML file, these rules allow a more specific MIME type to be chosen based on the namespace and localname of the document element. @@ -360,7 +360,7 @@ any name, but the namespace must still match. treemagic elements contain a list of treematch elements, -any of which may match, and an optional priority attribute for all of the +any of which may match, and an optional priority attribute for all of the contained rules. The default priority value is 50, and the maximum is 100. Each treematch element has a number of attributes: @@ -371,7 +371,7 @@ Each treematch element has a number of attributes: pathYesA path that must be present on the mounted volume/filesystem. The path is interpreted as a relative path starting at the root of the tested volume/filesystem - + typeNoThe type of path. Possible values: file, directory, link match-caseNoWhether path should be matched case-sensitively. Possible values: true, false @@ -464,7 +464,7 @@ For example: The glob file is a simple list of lines containing a MIME type and pattern, separated by a colon. It is -deprecated in favour of the globs2 file which also lists the weight of the glob rule. +deprecated in favour of the globs2 file which also lists the weight of the glob rule. The lines are ordered by glob weight. For example: The file starts with the magic string "MIME-TreeMagic\0\n". There is no version number in the file. -Incompatible changes will be handled by creating both the current `treemagic' and a newer `treemagic2' -in the new format. Where possible, changes will be made in a compatible fashion. +Incompatible changes will be handled by creating both the current `treemagic' and a newer `treemagic2' +in the new format. Where possible, changes will be made in a compatible fashion. The rest of the file is made up of a sequence of small sections. Each section is introduced by giving @@ -678,7 +678,7 @@ Each line in the section takes the form: indentThe nesting depth of the rule. pathThe path to match. typeThe required file type, one of "file", "directory", "link" or "any" - optionOptional for the optional attributes of treematch elements. + optionOptional for the optional attributes of treematch elements. Possible values are "executable", "match-case", "non-empty", or a MIME type @@ -689,9 +689,9 @@ Possible values are "executable", "match-case", "non-empty", or a MIME type The mime.cache files -The mime.cache files contain the same information as the -globs2, magic, subclasses, -aliases and XMLnamespaces files, in a binary, +The mime.cache files contain the same information as the +globs2, magic, subclasses, +aliases and XMLnamespaces files, in a binary, mmappable format: @@ -717,7 +717,7 @@ AliasListEntry: 4 CARD32 MIME_TYPE_OFFSET ParentList: -4 CARD32 N_ENTRIES +4 CARD32 N_ENTRIES 8*N_ENTRIES ParentListEntry ParentListEntry: @@ -730,7 +730,7 @@ Parents: LiteralList: 4 CARD32 N_LITERALS -12*N_LITERALS LiteralEntry +12*N_LITERALS LiteralEntry LiteralEntry: 4 CARD32 LITERAL_OFFSET @@ -742,7 +742,7 @@ LiteralEntry: GlobList: 4 CARD32 N_GLOBS -12*N_GLOBS GlobEntry +12*N_GLOBS GlobEntry GlobEntry: 4 CARD32 GLOB_OFFSET @@ -757,11 +757,11 @@ ReverseSuffixTree: ReverseSuffixTreeNode: 4 CARD32 CHARACTER -4 CARD32 N_CHILDREN +4 CARD32 N_CHILDREN 4 CARD32 FIRST_CHILD_OFFSET ReverseSuffixTreeLeafNode: -4 CARD32 0 +4 CARD32 0 4 CARD32 MIME_TYPE_OFFSET 4 CARD32 WEIGHT in lower 8 bits FLAGS in rest: @@ -790,7 +790,7 @@ Matchlet: NamespaceList: 4 CARD32 N_NAMESPACES -12*N_NAMESPACES NamespaceEntry +12*N_NAMESPACES NamespaceEntry NamespaceEntry: 4 CARD32 NAMESPACE_URI_OFFSET @@ -807,9 +807,9 @@ IconListEntry: 4 CARD32 ICON_NAME_OFFSET -Lists in the file are sorted, to enable binary searching. The list of -aliases is sorted by alias, the list of literal globs is sorted by the -literal. The SuffixTreeNode siblings are sorted by character. +Lists in the file are sorted, to enable binary searching. The list of +aliases is sorted by alias, the list of literal globs is sorted by the +literal. The SuffixTreeNode siblings are sorted by character. The list of namespaces is sorted by namespace uri. The list of icons is sorted by mimetype. @@ -825,11 +825,11 @@ All offsets are in bytes from the beginning of the file. Strings are zero-terminated. -All numbers are in network (big-endian) order. This is necessary because the data will be stored in +All numbers are in network (big-endian) order. This is necessary because the data will be stored in arch-independent directories like /usr/share/mime or even in user's home directories. -Cache files have to be written atomically - write to a temporary name, then move over the old file - so +Cache files have to be written atomically - write to a temporary name, then move over the old file - so that clients that have the old cache file open and mmap'ed won't get corrupt data. @@ -905,20 +905,20 @@ If the patterns are different, keep only globs with the longest pattern, as prev If after this, there is one or more matching glob, and all the matching globs result in the same mimetype, use that mimetype as the result. - + If the glob matching fails or results in multiple conflicting mimetypes, read the contents of the file and do magic sniffing on it. If no magic rule matches the data (or if the content is not available), use the default type of application/octet-stream for binary data, or text/plain for textual data. If there was no glob match, use the magic match -as the result. +as the result. Note: Checking the first 128 bytes of the file for ASCII control characters is a good way to guess whether a file is binary or text, but note that files with high-bit-set characters should still be treated as text since these can appear in UTF-8 text, unlike control characters. - + If any of the mimetypes resulting from a glob match is equal to or a subclass of the result from the magic sniffing, use this as the result. This allows us for example to @@ -926,7 +926,7 @@ distinguish text files called "foo.doc" from MS-Word files with the same name, a magic match for the MS-Word file would be application/x-ole-storage which the MS-Word type inherits. - + Otherwise use the result of the glob match that has the highest weight. @@ -976,13 +976,13 @@ point. Content types for volumes -Traditional MIME types apply to individual files or bytestreams. It is often useful -to apply the same methodologies when classifying the content of mountable volumes or -filesystems. The x-content type has been introduced for this purpose. Typical examples -are x-content/audio-dvd, x-content/blank-cd or x-content/image-dcf. +Traditional MIME types apply to individual files or bytestreams. It is often useful +to apply the same methodologies when classifying the content of mountable volumes or +filesystems. The x-content type has been introduced for this purpose. Typical examples +are x-content/audio-dvd, x-content/blank-cd or x-content/image-dcf. -Matching of content types works with treemagic elements, which +Matching of content types works with treemagic elements, which are analogous to the magic elements used for MIME type matching. Instead of looking for byte sequences in files, treemagic elements allow to look for files with certain names, permissions or mime types in a directory @@ -992,7 +992,7 @@ hierarchy. URI scheme handlers -URI scheme handling (such as a movie player handling mms:// URIs, or a Podcast program +URI scheme handling (such as a movie player handling mms:// URIs, or a Podcast program handling feed:// URIs) are handled through applications handling the x-scheme-handler/foo mime-type, where foo is the URI scheme in question. @@ -1002,9 +1002,9 @@ such as the ability to change the default handler, the cross-desktop support, an easier application launching. -Note that this virtual mime-type is not for listing URI schemes that an application -can load files from. For example, a movie player would not list x-scheme-handler/http -in its supported mime-types, but it would list x-scheme-handler/rtsp if it supported +Note that this virtual mime-type is not for listing URI schemes that an application +can load files from. For example, a movie player would not list x-scheme-handler/http +in its supported mime-types, but it would list x-scheme-handler/rtsp if it supported playing back from RTSP locations. diff --git a/data/update-mime-database.1 b/data/update-mime-database.1 index b18eac3b..e10bf22b 100644 --- a/data/update-mime-database.1 +++ b/data/update-mime-database.1 @@ -63,4 +63,3 @@ Copyright (C) 2002 Thomas Leonard. You may redistribute copies of .B update-mime-database under the terms of the GNU General Public License. - diff --git a/tests/mime-detection/list b/tests/mime-detection/list index 5e19703e..97b6ab56 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -9,8 +9,8 @@ # Images -test.bmp image/bmp -test.cel image/x-cel xxx +test.bmp image/bmp +test.cel image/x-cel xxx test.dcm application/dicom test.eps image/x-eps # https://bugs.freedesktop.org/show_bug.cgi?id=55264 @@ -146,7 +146,7 @@ ooo-test.odg application/vnd.oasis.opendocument.graphics ooo-test.odp application/vnd.oasis.opendocument.presentation ooo-test.ods application/vnd.oasis.opendocument.spreadsheet ooo-test.odt application/vnd.oasis.opendocument.text -# OpenDocument/OpenOffice.org flat XML +# OpenDocument/OpenOffice.org flat XML ooo-test.fodg application/vnd.oasis.opendocument.graphics-flat-xml ox ooo-test.fodp application/vnd.oasis.opendocument.presentation-flat-xml ox ooo-test.fods application/vnd.oasis.opendocument.spreadsheet-flat-xml ox -- cgit v1.2.1