[gimp-help] tools: add / when error message is about a closing tag



commit 602ab7d5560197c799fc921d054c769543d3a5f8
Author: Jacob Boerema <jgboerema gmail com>
Date:   Thu Mar 10 18:50:40 2022 -0500

    tools: add / when error message is about a closing tag

 tools/validate_po.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tools/validate_po.py b/tools/validate_po.py
index b1ec4fad8..8d8b48d61 100644
--- a/tools/validate_po.py
+++ b/tools/validate_po.py
@@ -125,12 +125,12 @@ class Validate(object):
                         if tag != lo_tag:
                             self.printErrorHeader(entry, self.log)
                             err += 1
-                            print(f"ERROR: Closing tag [{tag}] should be all lowercase.", file=self.log)
+                            print(f"ERROR: Closing tag [/{tag}] should be all lowercase.", file=self.log)
                             tag = lo_tag
                         if len(stack) == 0:
                             self.printErrorHeader(entry, self.log)
                             err += 1
-                            print(f"ERROR: Closing tag [{tag}] before opening tag.", file=self.log)
+                            print(f"ERROR: Closing tag [/{tag}] before opening tag.", file=self.log)
                         else:
                             if stack[-1] == tag:
                                 # Correct closing tag found, remove from stack
@@ -138,7 +138,7 @@ class Validate(object):
                             else:
                                 self.printErrorHeader(entry, self.log)
                                 err += 1
-                                print(f"ERROR: Found closing tag [{tag}], however we expected 
[{stack[0]}].", file=self.log)
+                                print(f"ERROR: Found closing tag [/{tag}], however we expected 
[{stack[0]}].", file=self.log)
                                 print(f"\tRemaining tags: {str(stack)}", file=self.log)
                                 if tag in stack:
                                     stack.remove(tag)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]