Commits

Katsunori FUJIWARA committed 19c334b

tools: add check about difference of initial indentation between msgid and msgstr

  • Participants
  • Parent commits 0db9732

Comments (0)

Files changed (1)

         elif colwidth(msgstrs[0]) != colwidth(msgstrs[1]):
             msgs.append("different length between title marks and title text")
 
+    idindent = len(infostock[0]) - len(infostock[0].lstrip())
+    msgindent = len(infostock[1]) - len(infostock[1].lstrip())
+    if idindent != msgindent:
+        msgs.append("different initial indentation between msgid and msgstr")
+
     if '$$' in infostock[0]:
         idparts = infostock[0].split('$$')
         idmsg = idparts[0].rstrip(' ').decode('string-escape')