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 457f9c5b90 pre-commit clean ups for `.el` and `.pas` files (#342)
457f9c5b90 is described below
commit 457f9c5b90845ceecf87fee6d85dd985ff8e9956
Author: John Bampton <[email protected]>
AuthorDate: Mon Mar 31 01:03:07 2025 +1000
pre-commit clean ups for `.el` and `.pas` files (#342)
Enforced 3 hooks:
- end-of-file-fixer
- mixed-line-ending
- trailing-whitespace
---
.pre-commit-config.yaml | 6 +++---
main/odk/examples/OLE/delphi/InsertTables/SampleCode.pas | 14 ++++++--------
main/odk/examples/OLE/delphi/InsertTables/SampleUI.pas | 12 ++++++------
main/writerfilter/source/doctok/xmigen.el | 6 +++---
4 files changed, 18 insertions(+), 20 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index fea1da0c22..256fcaff78 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|cxx|dxp|h|hrc|hxx|idl|in|ini|java|md|mk|php|pl|pm|py|rc|sh|xcs|xdl|xhp|xmi|xsd|xslt?|ya?ml)$|^ext_libraries/.*$|^test/.*$
+ files:
(m|M)akefile$|\.(asp|bat|c|cxx|dxp|el|h|hrc|hxx|idl|in|ini|java|md|mk|pas|php|pl|pm|py|rc|sh|xcs|xdl|xhp|xmi|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|dxp|h|hrc|idl|in|ini|md|mk|php|pl|pm|py|rc|sh|xcs|xdl|xhp|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$
+ files:
^main/.*\.(c|h)xx$|^main/.*\.java$|\.(asp|c|dxp|el|h|hrc|idl|in|ini|md|mk|pas|php|pl|pm|py|rc|sh|xcs|xdl|xhp|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$
- id: trailing-whitespace
- files: \.(asp|bat|ini|php|pl|rc|sh|xcs|xdl|xmi|xsd|ya?ml)$
+ files: \.(asp|bat|el|ini|pas|php|pl|rc|sh|xcs|xdl|xmi|xsd|ya?ml)$
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
diff --git a/main/odk/examples/OLE/delphi/InsertTables/SampleCode.pas
b/main/odk/examples/OLE/delphi/InsertTables/SampleCode.pas
index 68559912f1..fba06b03b4 100644
--- a/main/odk/examples/OLE/delphi/InsertTables/SampleCode.pas
+++ b/main/odk/examples/OLE/delphi/InsertTables/SampleCode.pas
@@ -1,5 +1,5 @@
/**************************************************************
- *
+ *
* 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
@@ -7,23 +7,23 @@
* 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.
- *
+ *
*************************************************************/
{***********************************************************************
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
* All rights reserved.
*
@@ -50,7 +50,7 @@
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
+ *
*************************************************************************}
unit SampleCode;
@@ -410,5 +410,3 @@ begin
end;
end.
-
-
diff --git a/main/odk/examples/OLE/delphi/InsertTables/SampleUI.pas
b/main/odk/examples/OLE/delphi/InsertTables/SampleUI.pas
index 529b89d6c1..65c3a6f0d1 100644
--- a/main/odk/examples/OLE/delphi/InsertTables/SampleUI.pas
+++ b/main/odk/examples/OLE/delphi/InsertTables/SampleUI.pas
@@ -1,5 +1,5 @@
/**************************************************************
- *
+ *
* 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
@@ -7,23 +7,23 @@
* 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.
- *
+ *
*************************************************************/
{***********************************************************************
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
* All rights reserved.
*
@@ -50,7 +50,7 @@
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
+ *
*************************************************************************}
unit SampleUI;
diff --git a/main/writerfilter/source/doctok/xmigen.el
b/main/writerfilter/source/doctok/xmigen.el
index c852996043..733d0cd0ed 100644
--- a/main/writerfilter/source/doctok/xmigen.el
+++ b/main/writerfilter/source/doctok/xmigen.el
@@ -19,7 +19,7 @@
(insert " </UML:TaggedValue.type>\n")
(insert " </UML:TaggedValue>\n")
(insert " </UML:ModelElement.taggedValue>\n"))
-
+
(defun insert-uml-attribute (type name offset bits mask shift comment attrid)
(insert "<UML:Classifier.feature>\n")
(insert " <UML:Attribute name=\"" name "\">\n")
@@ -119,8 +119,8 @@
(insert "</UML:Generalization>\n"))
(defun insert-uml-sprm (name sprmcode kind)
- (insert-uml-class-begin name)
+ (insert-uml-class-begin name)
(insert-uml-stereotype "ww8sprm")
(insert-uml-taggedvalue sprmcode "sprmcode")
(insert-uml-taggedvalue (concat "rtf:" name) "sprmid")
- (insert-uml-taggedvalue kind "kind"))
\ No newline at end of file
+ (insert-uml-taggedvalue kind "kind"))