Explorar o código

Ignore files not ending with '.xml' when building doc header

mhilbrunner %!s(int64=7) %!d(string=hai) anos
pai
achega
487afde3bb
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      editor/SCsub

+ 2 - 0
editor/SCsub

@@ -39,6 +39,8 @@ def make_doc_header(target, source, env):
     docend = ""
     for s in source:
         src = s.srcnode().abspath
+        if not src.endswith(".xml"):
+            continue
         f = open_utf8(src, "r")
         content = f.read()
         buf+=content