Code Monkey home page Code Monkey logo

Comments (3)

ZLLentz avatar ZLLentz commented on August 29, 2024

Here's of one example of a diff that only includes changes made on the second try, as maybe a clue:

diff --git a/lcls-plc-example-motion/tc_mot_example/tc_mot_example.tmc b/lcls-plc-example-motion/tc_mot_example/tc_mot_example.tmc
index 3ceeaa9..ecd31d7 100644
--- a/lcls-plc-example-motion/tc_mot_example/tc_mot_example.tmc
+++ b/lcls-plc-example-motion/tc_mot_example/tc_mot_example.tmc
@@ -4252,7 +4252,7 @@
       </Method>
       <Method>
         <Name>Write</Name>
-        <Comment>
+        <Comment>
     Writes the contents of the buffer into a file.
 </Comment>
         <ReturnType Namespace="LCLS_General.TcUnit.SysDir.SysTypes">RTS_IEC_RESULT</ReturnType>
@@ -4379,7 +4379,7 @@
       </Method>
       <Method>
         <Name>Find</Name>
-        <Comment>
+        <Comment>
     Find a searchstring in the buffer and returns its position.
     It's possible to add a preffered startposition within buffer
 </Comment>
@@ -4466,7 +4466,7 @@
       </Method>
       <Method>
         <Name>Clear</Name>
-        <Comment>
+        <Comment>
     Clears the buffer and sets the length to 0
 </Comment>
         <Local>
@@ -4919,7 +4919,7 @@
       </Method>
       <Method>
         <Name>ClearBuffer</Name>
-        <Comment>
+        <Comment>
     Clears the contents of the entire buffer.
 </Comment>
       </Method>

I personally can't figure out what's different yet

from pre-commit-hooks.

ZLLentz avatar ZLLentz commented on August 29, 2024

After a closer inspection, there is a single space after in these three multiline comment blocks after the first reformat, but not after the second.

from pre-commit-hooks.

ZLLentz avatar ZLLentz commented on August 29, 2024

I have two suggestions:

  1. have the parser function run itself on its output a few times
  2. strip whitespace from the end of every line in the output

from pre-commit-hooks.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.