This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 917981ad31 pre-commit auto remove trailing whitespace in rdf files 
(#387)
917981ad31 is described below

commit 917981ad31201f546d29d4ecf9ebe83393c65698
Author: John Bampton <[email protected]>
AuthorDate: Fri Jul 18 23:01:39 2025 +1000

    pre-commit auto remove trailing whitespace in rdf files (#387)
    
    Found another file type RDF and auto cleaned it
---
 .pre-commit-config.yaml                                 |  6 +++---
 main/unoxml/qa/complex/unoxml/testdocuments/example.rdf | 16 ++++++++--------
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 395f3e5b5d..11475cfbf7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,12 +33,12 @@ repos:
       - id: check-merge-conflict
       - id: check-vcs-permalinks
       - id: end-of-file-fixer
-        files: 
(m|M)akefile$|\.(asp|bat|c|cl|common|cxx|dxp|el|h|hrc|hxx|idl|in|ini|java|m|md|mk|mm|mod|pas|php|pl|pm|py|rc|sh|xba|xcs|xdl|xhp|xmi|xml|xsd|xslt?|ya?ml)$|^ext_libraries/.*$|^test/.*$
+        files: 
(m|M)akefile$|\.(asp|bat|c|cl|common|cxx|dxp|el|h|hrc|hxx|idl|in|ini|java|m|md|mk|mm|mod|pas|php|pl|pm|py|rc|rdf|sh|xba|xcs|xdl|xhp|xmi|xml|xsd|xslt?|ya?ml)$|^ext_libraries/.*$|^test/.*$
       - id: fix-byte-order-marker
       - id: mixed-line-ending
-        files: 
^main/.*\.(c|h)xx$|^main/.*\.java$|\.(asp|c|cl|common|dxp|el|h|hrc|idl|in|ini|m|md|mk|mm|mod|pas|php|pl|pm|py|rc|sh|xba|xcs|xdl|xhp|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$|^test/testgui/.*$
+        files: 
^main/.*\.(c|h)xx$|^main/.*\.java$|\.(asp|c|cl|common|dxp|el|h|hrc|idl|in|ini|m|md|mk|mm|mod|pas|php|pl|pm|py|rc|rdf|sh|xba|xcs|xdl|xhp|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$|^test/testgui/.*$
       - id: trailing-whitespace
-        files: 
(m|M)akefile$|\.(asp|bat|c|cl|common|dxp|el|hrc|hxx|idl|in|ini|m|mk|mm|mod|pas|php|pl|pm|py|rc|sh|xba|xcs|xdl|xhp|xmi|xsd|ya?ml)$
+        files: 
(m|M)akefile$|\.(asp|bat|c|cl|common|dxp|el|hrc|hxx|idl|in|ini|m|mk|mm|mod|pas|php|pl|pm|py|rc|rdf|sh|xba|xcs|xdl|xhp|xmi|xsd|ya?ml)$
   - repo: https://github.com/codespell-project/codespell
     rev: v2.4.1
     hooks:
diff --git a/main/unoxml/qa/complex/unoxml/testdocuments/example.rdf 
b/main/unoxml/qa/complex/unoxml/testdocuments/example.rdf
index 7d95c340f9..66839ce244 100644
--- a/main/unoxml/qa/complex/unoxml/testdocuments/example.rdf
+++ b/main/unoxml/qa/complex/unoxml/testdocuments/example.rdf
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!--***********************************************************
- * 
+ *
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
  * distributed with this work for additional information
@@ -8,30 +8,30 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  * KIND, either express or implied.  See the License for the
  * specific language governing permissions and limitations
  * under the License.
- * 
+ *
  ***********************************************************-->
-<rdf:RDF 
+<rdf:RDF
  xmlns:pkg="http://docs.oasis-open.org/opendocument/meta/package/common#";
- xmlns:odf="http://docs.oasis-open.org/opendocument/meta/package/odf#"; 
+ xmlns:odf="http://docs.oasis-open.org/opendocument/meta/package/odf#";
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
 <pkg:Package rdf:about="urn:uuid:224ab023-77b8-4396-a75a-8cecd85b81e3">
     <pkg:hasPart>
         <odf:ContentFile pkg:path="content.xml">
             <pkg:hasPart>
-                               <odf:Element rdf:about="uri:example-element-1" 
+                               <odf:Element rdf:about="uri:example-element-1"
                                        pkg:idref="ID_A"/>
             </pkg:hasPart>
             <pkg:hasPart>
-                               <odf:Element rdf:about="uri:example-element-2" 
+                               <odf:Element rdf:about="uri:example-element-2"
                                        pkg:idref="ID_B"/>
             </pkg:hasPart>
                </odf:ContentFile>

Reply via email to