[library-web] also include svg pictures in fallback mode



commit 0dd162cd41f7ab3a7a988b298cc0ec0de93ffa82
Author: FrÃdÃric PÃters <fpeters 0d be>
Date:   Fri May 4 09:11:15 2012 +0200

    also include svg pictures in fallback mode

 src/modtypes/gnomedocbook.py |    4 ++--
 src/modtypes/mallard.py      |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/modtypes/gnomedocbook.py b/src/modtypes/gnomedocbook.py
index eea346a..3871400 100644
--- a/src/modtypes/gnomedocbook.py
+++ b/src/modtypes/gnomedocbook.py
@@ -108,11 +108,11 @@ class GnomeDocbookModule(DocModule):
             if os.path.exists(figures_dirname):
                 doc_figures += [os.path.join('figures', x) for x in \
                         os.listdir(figures_dirname) \
-                        if os.path.splitext(x)[1] in ('.png', '.jpg', '.jpeg')]
+                        if os.path.splitext(x)[1] in ('.png', '.jpg', '.jpeg', '.svg')]
             if os.path.exists(images_dirname):
                 doc_figures += [os.path.join('images', x) for x in \
                         os.listdir(images_dirname) \
-                        if os.path.splitext(x)[1] in ('.png', '.jpg', '.jpeg')]
+                        if os.path.splitext(x)[1] in ('.png', '.jpg', '.jpeg', '.svg')]
 
         doc_linguas.sort()
         if app.config.languages:
diff --git a/src/modtypes/mallard.py b/src/modtypes/mallard.py
index 336a812..a34278e 100644
--- a/src/modtypes/mallard.py
+++ b/src/modtypes/mallard.py
@@ -232,11 +232,11 @@ class MallardModule(DocModule):
             if os.path.exists(figures_dirname):
                 doc_figures += [os.path.join('figures', x) for x in \
                         os.listdir(figures_dirname) \
-                        if os.path.splitext(x)[1] in ('.png', '.jpg', '.jpeg')]
+                        if os.path.splitext(x)[1] in ('.png', '.jpg', '.jpeg', '.svg')]
             if os.path.exists(images_dirname):
                 doc_figures += [os.path.join('images', x) for x in \
                         os.listdir(images_dirname) \
-                        if os.path.splitext(x)[1] in ('.png', '.jpg', '.jpeg')]
+                        if os.path.splitext(x)[1] in ('.png', '.jpg', '.jpeg', '.svg')]
 
         doc_linguas.sort()
         if app.config.languages:



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