summaryrefslogtreecommitdiff
path: root/web/updatelang.py
diff options
context:
space:
mode:
Diffstat (limited to 'web/updatelang.py')
-rwxr-xr-xweb/updatelang.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/updatelang.py b/web/updatelang.py
index 47b8bda..e7a367a 100755
--- a/web/updatelang.py
+++ b/web/updatelang.py
@@ -22,10 +22,10 @@ def invalidline(line, filx="none"):
"</div>" in line or
"iframe" in line or
"header" in filx or
- line == " <p>" or
- line == " </p>" or
- line == " <pre><code>" or
- line == " </code></pre>" or
+ (line.startswith(" <p>") and line.endswith("<p>\n")) or
+ (line.startswith(" </p>") and line.endswith("</p>\n")) or
+ (line.startswith(" <pre><code>") and line.endswith("<code>\n")) or
+ (line.startswith(" </code></pre>") and line.endswith("</pre>\n")) or
line.replace('\n','') == "")
# Populates the basic arrays