PreviewerHTML: added a error handler for docutils SystemMessage exceptions.

Thu, 21 Feb 2019 19:22:11 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 21 Feb 2019 19:22:11 +0100
changeset 6794
10c368c9c02b
parent 6791
1ed35ada4c59
child 6796
eebd0a5f10f4
child 6799
6947cb9d4ce8

PreviewerHTML: added a error handler for docutils SystemMessage exceptions.

UI/Previewers/PreviewerHTML.py file | annotate | diff | comparison | revisions
i18n/eric6_cs.ts file | annotate | diff | comparison | revisions
i18n/eric6_de.qm file | annotate | diff | comparison | revisions
i18n/eric6_de.ts file | annotate | diff | comparison | revisions
i18n/eric6_empty.ts file | annotate | diff | comparison | revisions
i18n/eric6_en.ts file | annotate | diff | comparison | revisions
i18n/eric6_es.ts file | annotate | diff | comparison | revisions
i18n/eric6_fr.ts file | annotate | diff | comparison | revisions
i18n/eric6_it.ts file | annotate | diff | comparison | revisions
i18n/eric6_pt.ts file | annotate | diff | comparison | revisions
i18n/eric6_ru.ts file | annotate | diff | comparison | revisions
i18n/eric6_tr.ts file | annotate | diff | comparison | revisions
i18n/eric6_zh_CN.ts file | annotate | diff | comparison | revisions
--- a/UI/Previewers/PreviewerHTML.py	Tue Feb 19 19:08:03 2019 +0100
+++ b/UI/Previewers/PreviewerHTML.py	Thu Feb 21 19:22:11 2019 +0100
@@ -11,6 +11,7 @@
 
 try:  # Only for Py2
     import StringIO as io   # __IGNORE_EXCEPTION__
+    str = unicode
 except (ImportError, NameError):
     import io       # __IGNORE_WARNING__
 
@@ -659,6 +660,7 @@
         
         try:
             import docutils.core    # __IGNORE_EXCEPTION__
+            import docutils.utils   # __IGNORE_EXCEPTION__
         except ImportError:
             return self.tr(
                 """<p>ReStructuredText preview requires the"""
@@ -670,8 +672,15 @@
         # redirect sys.stderr because we are not interested in it here
         origStderr = sys.stderr
         sys.stderr = io.StringIO()
-        html = docutils.core.publish_string(
-            text, writer_name=htmlFormat.lower()).decode("utf-8")
+        try:
+            html = docutils.core.publish_string(
+                text, writer_name=htmlFormat.lower()).decode("utf-8")
+        except docutils.utils.SystemMessage as err:
+            errStr = str(err).split(":")[-1].replace("\n", "<br/>")
+            return self.tr(
+                """<p>Docutils returned an error:</p><p>{0}</p>"""
+            ).format(errStr)
+        
         sys.stderr = origStderr
         return html
     
--- a/i18n/eric6_cs.ts	Tue Feb 19 19:08:03 2019 +0100
+++ b/i18n/eric6_cs.ts	Thu Feb 21 19:22:11 2019 +0100
@@ -51260,65 +51260,70 @@
 <context>
     <name>PreviewProcessingThread</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;python-docutils&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install docutils&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;sphinx&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager,&apos;pip install Sphinx&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/>
         <source>&lt;p&gt;Markdown preview requires the &lt;b&gt;Markdown&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install Markdown&apos; or see &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;installation instructions.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/>
+        <source>&lt;p&gt;Docutils returned an error:&lt;/p&gt;&lt;p&gt;{0}&lt;/p&gt;</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>PreviewerHTML</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/>
         <source>Select to enable JavaScript for HTML previews</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
         <source>Enable JavaScript</source>
         <translation type="unfinished">Zapnout JavaScript</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/>
         <source>Select to enable support for Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/>
         <source>Enable Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/>
         <source>Preview - {0}</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/>
         <source>Preview</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/>
         <source>&lt;b&gt;HTML Preview is not available!&lt;br/&gt;Install QtWebEngine or QtWebKit.&lt;/b&gt;</source>
         <translation type="unfinished"></translation>
     </message>
Binary file i18n/eric6_de.qm has changed
--- a/i18n/eric6_de.ts	Tue Feb 19 19:08:03 2019 +0100
+++ b/i18n/eric6_de.ts	Thu Feb 21 19:22:11 2019 +0100
@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE TS>
-<TS version="2.1" language="de">
+<!DOCTYPE TS><TS version="2.0" language="de" sourcelanguage="">
 <context>
     <name>AboutDialog</name>
     <message>
@@ -1973,8 +1972,8 @@
     </message>
     <message>
         <location filename="../WebBrowser/Bookmarks/BookmarksMenu.py" line="170"/>
-        <source>Open in New Tab	Ctrl+LMB</source>
-        <translation>In neuem Register öffnen	Strg+LMK</translation>
+        <source>Open in New Tab<byte value="x9"/>Ctrl+LMB</source>
+        <translation>In neuem Register öffnen<byte value="x9"/>Strg+LMK</translation>
     </message>
     <message>
         <location filename="../WebBrowser/Bookmarks/BookmarksMenu.py" line="174"/>
@@ -2052,8 +2051,8 @@
     </message>
     <message>
         <location filename="../WebBrowser/Bookmarks/BookmarksToolBar.py" line="91"/>
-        <source>Open in New Tab	Ctrl+LMB</source>
-        <translation>In neuem Register öffnen	Strg+LMK</translation>
+        <source>Open in New Tab<byte value="x9"/>Ctrl+LMB</source>
+        <translation>In neuem Register öffnen<byte value="x9"/>Strg+LMK</translation>
     </message>
     <message>
         <location filename="../WebBrowser/Bookmarks/BookmarksToolBar.py" line="95"/>
@@ -26026,8 +26025,8 @@
     </message>
     <message>
         <location filename="../Helpviewer/HelpBrowserWV.py" line="1223"/>
-        <source>Open Link in New Tab	Ctrl+LMB</source>
-        <translation>Link in neuem Fenster öffnen	Strg+LMK</translation>
+        <source>Open Link in New Tab<byte value="x9"/>Ctrl+LMB</source>
+        <translation>Link in neuem Fenster öffnen<byte value="x9"/>Strg+LMK</translation>
     </message>
     <message>
         <location filename="../Helpviewer/HelpBrowserWV.py" line="1314"/>
@@ -51376,65 +51375,70 @@
 <context>
     <name>PreviewProcessingThread</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation>&lt;p&gt;Für diesen Dateityp ist keine Vorschau verfügbar.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;python-docutils&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install docutils&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;</source>
         <translation>&lt;p&gt;Die ReStructuredText-Vorschau erfordert das &lt;b&gt;python-docutils&lt;/b&gt;-Paket.&lt;br/&gt;Installiere es mit dem Paketmanager,&apos;pip install docutils&apos; oder siehe &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;diese Seite.&lt;/a&gt;&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;sphinx&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager,&apos;pip install Sphinx&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.&lt;/p&gt;</source>
         <translation>&lt;p&gt;Die ReStructuredText-Vorschau erfordert das &lt;b&gt;sphinx&lt;/b&gt;-Paket.&lt;br/&gt;Installiere es mit dem Paketmanager,&apos;pip install Sphinx&apos; oder siehe &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;diese Seite.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Alternativ kann die Verwendung von Sphinx auf der Konfigurationsseite Editor, Dateibehandlung deaktiviert werden.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/>
         <source>&lt;p&gt;Markdown preview requires the &lt;b&gt;Markdown&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install Markdown&apos; or see &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;installation instructions.&lt;/a&gt;&lt;/p&gt;</source>
         <translation>&lt;p&gt;Die Markdown-Vorschau erfordert das &lt;b&gt;Markdown&lt;/b&gt;-Paket.&lt;br/&gt;Installiere es mit dem Paketmanager, &apos;pip install Markdown&apos; oder siehe &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;die Installationsanleitung.&lt;/a&gt;&lt;/p&gt;</translation>
     </message>
+    <message>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/>
+        <source>&lt;p&gt;Docutils returned an error:&lt;/p&gt;&lt;p&gt;{0}&lt;/p&gt;</source>
+        <translation>&lt;p&gt;Docutils lieferte einen Fehler zurück:&lt;/p&gt;&lt;p&gt;{0}&lt;/p&gt;</translation>
+    </message>
 </context>
 <context>
     <name>PreviewerHTML</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/>
         <source>Select to enable JavaScript for HTML previews</source>
         <translation>Auswählen, um JavaScript für die Vorschau zu aktivieren</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
         <source>Enable JavaScript</source>
         <translation>JavaScript aktivieren</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/>
         <source>Select to enable support for Server Side Includes</source>
         <translation>Auswählen, um Unterstützung für Server Side Includes zu aktivieren</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/>
         <source>Enable Server Side Includes</source>
         <translation>Server Side Includes aktivieren</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation>&lt;p&gt;Für diesen Dateityp ist keine Vorschau verfügbar.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/>
         <source>Preview - {0}</source>
         <translation>Vorschau – {0}</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/>
         <source>Preview</source>
         <translation>Vorschau</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/>
         <source>&lt;b&gt;HTML Preview is not available!&lt;br/&gt;Install QtWebEngine or QtWebKit.&lt;/b&gt;</source>
         <translation>&lt;b&gt;HTML Vorschau ist nicht verfügbar!&lt;br/&gt;Installiere QtWebEngine oder QtWebKit.&lt;/b&gt;</translation>
     </message>
@@ -85229,8 +85233,8 @@
     </message>
     <message>
         <location filename="../WebBrowser/WebBrowserView.py" line="650"/>
-        <source>Open Link in New Tab	Ctrl+LMB</source>
-        <translation>Link in neuem Fenster öffnen	Strg+LMK</translation>
+        <source>Open Link in New Tab<byte value="x9"/>Ctrl+LMB</source>
+        <translation>Link in neuem Fenster öffnen<byte value="x9"/>Strg+LMK</translation>
     </message>
     <message>
         <location filename="../WebBrowser/WebBrowserView.py" line="656"/>
--- a/i18n/eric6_empty.ts	Tue Feb 19 19:08:03 2019 +0100
+++ b/i18n/eric6_empty.ts	Thu Feb 21 19:22:11 2019 +0100
@@ -51121,65 +51121,70 @@
 <context>
     <name>PreviewProcessingThread</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;sphinx&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager,&apos;pip install Sphinx&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;python-docutils&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install docutils&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/>
         <source>&lt;p&gt;Markdown preview requires the &lt;b&gt;Markdown&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install Markdown&apos; or see &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;installation instructions.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/>
+        <source>&lt;p&gt;Docutils returned an error:&lt;/p&gt;&lt;p&gt;{0}&lt;/p&gt;</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>PreviewerHTML</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
         <source>Enable JavaScript</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/>
         <source>Select to enable JavaScript for HTML previews</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/>
         <source>Enable Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/>
         <source>Select to enable support for Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/>
         <source>Preview - {0}</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/>
         <source>Preview</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/>
         <source>&lt;b&gt;HTML Preview is not available!&lt;br/&gt;Install QtWebEngine or QtWebKit.&lt;/b&gt;</source>
         <translation type="unfinished"></translation>
     </message>
--- a/i18n/eric6_en.ts	Tue Feb 19 19:08:03 2019 +0100
+++ b/i18n/eric6_en.ts	Thu Feb 21 19:22:11 2019 +0100
@@ -51168,65 +51168,70 @@
 <context>
     <name>PreviewProcessingThread</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;python-docutils&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install docutils&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;sphinx&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager,&apos;pip install Sphinx&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/>
         <source>&lt;p&gt;Markdown preview requires the &lt;b&gt;Markdown&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install Markdown&apos; or see &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;installation instructions.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/>
+        <source>&lt;p&gt;Docutils returned an error:&lt;/p&gt;&lt;p&gt;{0}&lt;/p&gt;</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>PreviewerHTML</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/>
         <source>Select to enable JavaScript for HTML previews</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
         <source>Enable JavaScript</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/>
         <source>Select to enable support for Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/>
         <source>Enable Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/>
         <source>Preview - {0}</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/>
         <source>Preview</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/>
         <source>&lt;b&gt;HTML Preview is not available!&lt;br/&gt;Install QtWebEngine or QtWebKit.&lt;/b&gt;</source>
         <translation type="unfinished"></translation>
     </message>
--- a/i18n/eric6_es.ts	Tue Feb 19 19:08:03 2019 +0100
+++ b/i18n/eric6_es.ts	Thu Feb 21 19:22:11 2019 +0100
@@ -51378,65 +51378,70 @@
 <context>
     <name>PreviewProcessingThread</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation>&lt;p&gt;No hay vista previa disponible para este tipo de archivo.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;python-docutils&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install docutils&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;</source>
         <translation>&lt;p&gt;La previsualización de ReStructuredText requiere el package &lt;b&gt;python-docutils&lt;/b&gt; .&lt;br/&gt;Installar con el gestor de paquetes, &apos;pip install docutils&apos; o ver &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;esta página .&lt;/a&gt;&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;sphinx&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager,&apos;pip install Sphinx&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.&lt;/p&gt;</source>
         <translation>&lt;p&gt;La previsualización de ReStructuredText requiere el package &lt;b&gt;sphinx&lt;/b&gt; .&lt;br/&gt;Installar con el gestor de paquetes, &apos;pip install sphinx&apos; o ver &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;esta página .&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Como alternativa, se puede deshabilitar el uso de Sphinx en el Editor, página de configuración de Gestión de Archivos.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/>
         <source>&lt;p&gt;Markdown preview requires the &lt;b&gt;Markdown&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install Markdown&apos; or see &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;installation instructions.&lt;/a&gt;&lt;/p&gt;</source>
         <translation>&lt;p&gt;La previsualización de Markdown requiere del package &lt;b&gt;Markdown&lt;/b&gt;.&lt;br/&gt;Instalarlo con el gestor de paquetes o ver en &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;las instrucciones de instalación.&lt;/a&gt;&lt;/p&gt;</translation>
     </message>
+    <message>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/>
+        <source>&lt;p&gt;Docutils returned an error:&lt;/p&gt;&lt;p&gt;{0}&lt;/p&gt;</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>PreviewerHTML</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/>
         <source>Select to enable JavaScript for HTML previews</source>
         <translation>Seleccionar para habilitar JavaScript para las previsualizaciones de HTML</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
         <source>Enable JavaScript</source>
         <translation>Habilitar JavaScript</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/>
         <source>Select to enable support for Server Side Includes</source>
         <translation>Seleccionar para habilitar soporte para includes del Lado del Servidor</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/>
         <source>Enable Server Side Includes</source>
         <translation>Habilitar Includes del Lado del Servidor</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation>&lt;p&gt;No hay vista previa disponible para este tipo de archivo.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/>
         <source>Preview - {0}</source>
         <translation>Vista Previa - {0}</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/>
         <source>Preview</source>
         <translation>Vista Previa</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/>
         <source>&lt;b&gt;HTML Preview is not available!&lt;br/&gt;Install QtWebEngine or QtWebKit.&lt;/b&gt;</source>
         <translation>&lt;b&gt;¡La Vista Preliminar HTML no está disponible!&lt;br/&gt;Instalar QtWebEngine o QtWebKit.&lt;/b&gt;</translation>
     </message>
--- a/i18n/eric6_fr.ts	Tue Feb 19 19:08:03 2019 +0100
+++ b/i18n/eric6_fr.ts	Thu Feb 21 19:22:11 2019 +0100
@@ -51261,65 +51261,70 @@
 <context>
     <name>PreviewProcessingThread</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;python-docutils&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install docutils&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;sphinx&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager,&apos;pip install Sphinx&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/>
         <source>&lt;p&gt;Markdown preview requires the &lt;b&gt;Markdown&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install Markdown&apos; or see &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;installation instructions.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/>
+        <source>&lt;p&gt;Docutils returned an error:&lt;/p&gt;&lt;p&gt;{0}&lt;/p&gt;</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>PreviewerHTML</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/>
         <source>Select to enable JavaScript for HTML previews</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
         <source>Enable JavaScript</source>
         <translation type="unfinished">Activer JavaScript</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/>
         <source>Select to enable support for Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/>
         <source>Enable Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/>
         <source>Preview - {0}</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/>
         <source>Preview</source>
         <translation type="unfinished">Aperçu</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/>
         <source>&lt;b&gt;HTML Preview is not available!&lt;br/&gt;Install QtWebEngine or QtWebKit.&lt;/b&gt;</source>
         <translation type="unfinished"></translation>
     </message>
--- a/i18n/eric6_it.ts	Tue Feb 19 19:08:03 2019 +0100
+++ b/i18n/eric6_it.ts	Thu Feb 21 19:22:11 2019 +0100
@@ -51299,65 +51299,70 @@
 <context>
     <name>PreviewProcessingThread</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation>&lt;p&gt;Non è prevista la visualizzazione per questo tipo di flusso.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;python-docutils&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install docutils&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;sphinx&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager,&apos;pip install Sphinx&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/>
         <source>&lt;p&gt;Markdown preview requires the &lt;b&gt;Markdown&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install Markdown&apos; or see &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;installation instructions.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/>
+        <source>&lt;p&gt;Docutils returned an error:&lt;/p&gt;&lt;p&gt;{0}&lt;/p&gt;</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>PreviewerHTML</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/>
         <source>Select to enable JavaScript for HTML previews</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
         <source>Enable JavaScript</source>
         <translation type="unfinished">Abilita Javascript</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/>
         <source>Select to enable support for Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/>
         <source>Enable Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation type="unfinished">&lt;p&gt;Non è prevista la visualizzazione per questo tipo di flusso.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/>
         <source>Preview - {0}</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/>
         <source>Preview</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/>
         <source>&lt;b&gt;HTML Preview is not available!&lt;br/&gt;Install QtWebEngine or QtWebKit.&lt;/b&gt;</source>
         <translation type="unfinished"></translation>
     </message>
--- a/i18n/eric6_pt.ts	Tue Feb 19 19:08:03 2019 +0100
+++ b/i18n/eric6_pt.ts	Thu Feb 21 19:22:11 2019 +0100
@@ -51303,65 +51303,70 @@
 <context>
     <name>PreviewProcessingThread</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation>&lt;p&gt;A antevisão para este tipo de ficheiro não está disponível.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;sphinx&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager,&apos;pip install Sphinx&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;python-docutils&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install docutils&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/>
         <source>&lt;p&gt;Markdown preview requires the &lt;b&gt;Markdown&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install Markdown&apos; or see &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;installation instructions.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/>
+        <source>&lt;p&gt;Docutils returned an error:&lt;/p&gt;&lt;p&gt;{0}&lt;/p&gt;</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>PreviewerHTML</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/>
         <source>Select to enable JavaScript for HTML previews</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
         <source>Enable JavaScript</source>
         <translation>Habilitar JavaScript</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/>
         <source>Select to enable support for Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/>
         <source>Enable Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation>&lt;p&gt;A antevisão para este tipo de ficheiro não está disponível.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/>
         <source>Preview - {0}</source>
         <translation>Antevisão - {0}</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/>
         <source>Preview</source>
         <translation>Antevisão</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/>
         <source>&lt;b&gt;HTML Preview is not available!&lt;br/&gt;Install QtWebEngine or QtWebKit.&lt;/b&gt;</source>
         <translation type="unfinished"></translation>
     </message>
--- a/i18n/eric6_ru.ts	Tue Feb 19 19:08:03 2019 +0100
+++ b/i18n/eric6_ru.ts	Thu Feb 21 19:22:11 2019 +0100
@@ -51475,65 +51475,70 @@
 <context>
     <name>PreviewProcessingThread</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation>&lt;p&gt;Предварительный просмотр не доступен для этого типа файла.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;python-docutils&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install docutils&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;</source>
         <translation>&lt;p&gt;Для предварительного просмотра ReStructuredText файлов необходим пакет &lt;b&gt;python-docutils&lt;/b&gt; package.&lt;br/&gt;Установите его с помощью менеджера пакетов, &apos;pip install docutils&apos; или ознакомьтесь со страницей &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;.&lt;/a&gt;&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;sphinx&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager,&apos;pip install Sphinx&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.&lt;/p&gt;</source>
         <translation>&lt;p&gt;Для предварительного просмотра ReStructuredText файлов необходим пакет &lt;b&gt;sphinx&lt;/b&gt; package.&lt;br/&gt;Установите его с помощью менеджера пакетов,&apos;pip install Sphinx&apos; или ознакомьтесь со срраницей &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;В качестве альтернативы можете запретить использование Sphinx во вкладке Редактор, страница Настройка режима работы с файлами.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/>
         <source>&lt;p&gt;Markdown preview requires the &lt;b&gt;Markdown&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install Markdown&apos; or see &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;installation instructions.&lt;/a&gt;&lt;/p&gt;</source>
         <translation>&lt;p&gt;Для предварительного просмотра Markdown файлов необходим пакет &lt;b&gt;python-markdown&lt;/b&gt;.&lt;br/&gt;Установите его с помощью команды &apos;pip install docutils&apos; вашего менеджера пакетов или ознакомьтесь с инструкцией &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;.&lt;/a&gt;&lt;/p&gt;</translation>
     </message>
+    <message>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/>
+        <source>&lt;p&gt;Docutils returned an error:&lt;/p&gt;&lt;p&gt;{0}&lt;/p&gt;</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>PreviewerHTML</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/>
         <source>Select to enable JavaScript for HTML previews</source>
         <translation>Разрешить JavaScript для предварительного просмотра HTML файлов</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
         <source>Enable JavaScript</source>
         <translation>Использовать JavaScript</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/>
         <source>Select to enable support for Server Side Includes</source>
         <translation>Разрешить поддержку Server Side Includes</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/>
         <source>Enable Server Side Includes</source>
         <translation>Разрешить Server Side Includes</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation>&lt;p&gt;Предварительный просмотр не доступен для этого типа файла.&lt;/p&gt;</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/>
         <source>Preview - {0}</source>
         <translation>Предварительный просмотр - {0}</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/>
         <source>Preview</source>
         <translation>Предварительный просмотр</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/>
         <source>&lt;b&gt;HTML Preview is not available!&lt;br/&gt;Install QtWebEngine or QtWebKit.&lt;/b&gt;</source>
         <translation>&lt;b&gt;Предварительный просмотр HTML недоступен!&lt;br/&gt;Установите QtWebEngine или QtWebKit.&lt;/b&gt;</translation>
     </message>
--- a/i18n/eric6_tr.ts	Tue Feb 19 19:08:03 2019 +0100
+++ b/i18n/eric6_tr.ts	Thu Feb 21 19:22:11 2019 +0100
@@ -51235,65 +51235,70 @@
 <context>
     <name>PreviewProcessingThread</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;python-docutils&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install docutils&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;sphinx&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager,&apos;pip install Sphinx&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/>
         <source>&lt;p&gt;Markdown preview requires the &lt;b&gt;Markdown&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install Markdown&apos; or see &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;installation instructions.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/>
+        <source>&lt;p&gt;Docutils returned an error:&lt;/p&gt;&lt;p&gt;{0}&lt;/p&gt;</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>PreviewerHTML</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/>
         <source>Select to enable JavaScript for HTML previews</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
         <source>Enable JavaScript</source>
         <translation type="unfinished">Javabetiğini etkinleştir</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/>
         <source>Select to enable support for Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/>
         <source>Enable Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/>
         <source>Preview - {0}</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/>
         <source>Preview</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/>
         <source>&lt;b&gt;HTML Preview is not available!&lt;br/&gt;Install QtWebEngine or QtWebKit.&lt;/b&gt;</source>
         <translation type="unfinished"></translation>
     </message>
--- a/i18n/eric6_zh_CN.ts	Tue Feb 19 19:08:03 2019 +0100
+++ b/i18n/eric6_zh_CN.ts	Thu Feb 21 19:22:11 2019 +0100
@@ -51207,65 +51207,70 @@
 <context>
     <name>PreviewProcessingThread</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="499"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="500"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="668"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="670"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;python-docutils&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install docutils&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/docutils&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="612"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="613"/>
         <source>&lt;p&gt;ReStructuredText preview requires the &lt;b&gt;sphinx&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager,&apos;pip install Sphinx&apos; or see &lt;a href=&quot;http://pypi.python.org/pypi/Sphinx&quot;&gt;this page.&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Alternatively you may disable Sphinx usage on the Editor, Filehandling configuration page.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="696"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="705"/>
         <source>&lt;p&gt;Markdown preview requires the &lt;b&gt;Markdown&lt;/b&gt; package.&lt;br/&gt;Install it with your package manager, &apos;pip install Markdown&apos; or see &lt;a href=&quot;http://pythonhosted.org/Markdown/install.html&quot;&gt;installation instructions.&lt;/a&gt;&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="685"/>
+        <source>&lt;p&gt;Docutils returned an error:&lt;/p&gt;&lt;p&gt;{0}&lt;/p&gt;</source>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 <context>
     <name>PreviewerHTML</name>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="89"/>
         <source>Select to enable JavaScript for HTML previews</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="87"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="88"/>
         <source>Enable JavaScript</source>
         <translation>允许 JavaScript</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="94"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="95"/>
         <source>Select to enable support for Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="92"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="93"/>
         <source>Enable Server Side Includes</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="205"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="206"/>
         <source>&lt;p&gt;No preview available for this type of file.&lt;/p&gt;</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="267"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="268"/>
         <source>Preview - {0}</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="269"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="270"/>
         <source>Preview</source>
         <translation>预览</translation>
     </message>
     <message>
-        <location filename="../UI/Previewers/PreviewerHTML.py" line="70"/>
+        <location filename="../UI/Previewers/PreviewerHTML.py" line="71"/>
         <source>&lt;b&gt;HTML Preview is not available!&lt;br/&gt;Install QtWebEngine or QtWebKit.&lt;/b&gt;</source>
         <translation type="unfinished"></translation>
     </message>

eric ide

mercurial