eric6/DocumentationTools/TemplatesListsStyle.py

changeset 7252
c5e3705073eb
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/DocumentationTools/TemplatesListsStyle.py	Sat Sep 21 13:37:58 2019 +0200
+++ b/eric6/DocumentationTools/TemplatesListsStyle.py	Sat Sep 21 15:37:43 2019 +0200
@@ -12,8 +12,7 @@
 ##  Common templates for index and docu files  ##
 #################################################
 
-headerTemplate = \
-'''<!DOCTYPE html>
+headerTemplate = '''<!DOCTYPE html>
 <html><head>
 <title>{{Title}}</title>
 <meta charset="UTF-8">
@@ -27,8 +26,8 @@
 ##  Templates for documentation files  ##
 #########################################
 
-moduleTemplate = \
-'''<a NAME="top" ID="top"></a>
+moduleTemplate = '''
+<a NAME="top" ID="top"></a>
 <h1 style="background-color:{Level1HeaderBgColor};color:{Level1HeaderColor}">
 {{Module}}</h1>
 {{ModuleDescription}}
@@ -43,8 +42,8 @@
 {{FunctionList}}
 <hr />'''
 
-rbFileTemplate = \
-'''<a NAME="top" ID="top"></a>
+rbFileTemplate = '''
+<a NAME="top" ID="top"></a>
 <h1 style="background-color:{Level1HeaderBgColor};color:{Level1HeaderColor}">
 {{Module}}</h1>
 {{ModuleDescription}}
@@ -62,8 +61,8 @@
 {{FunctionList}}
 <hr />'''
 
-classTemplate = \
-'''<hr />
+classTemplate = '''
+<hr />
 <a NAME="{{Anchor}}" ID="{{Anchor}}"></a>
 <h2 style="background-color:{CFBgColor};color:{CFColor}">{{Class}}</h2>
 {{ClassDescription}}
@@ -86,22 +85,22 @@
 <div align="right"><a style="color:{LinkColor}" href="#top">Up</a></div>
 <hr />'''
 
-methodTemplate = \
-'''<a NAME="{{Anchor}}.{{Method}}" ID="{{Anchor}}.{{Method}}"></a>
+methodTemplate = '''
+<a NAME="{{Anchor}}.{{Method}}" ID="{{Anchor}}.{{Method}}"></a>
 <h3 style="background-color:{Level2HeaderBgColor};color:{Level2HeaderColor}">
 {{Class}}.{{Method}}{{MethodClassifier}}</h3>
 <b>{{Method}}</b>(<i>{{Params}}</i>)
 {{MethodDescription}}'''
 
-constructorTemplate = \
-'''<a NAME="{{Anchor}}.{{Method}}" ID="{{Anchor}}.{{Method}}"></a>
+constructorTemplate = '''
+<a NAME="{{Anchor}}.{{Method}}" ID="{{Anchor}}.{{Method}}"></a>
 <h3 style="background-color:{Level2HeaderBgColor};color:{Level2HeaderColor}">
 {{Class}} (Constructor)</h3>
 <b>{{Class}}</b>(<i>{{Params}}</i>)
 {{MethodDescription}}'''
 
-rbModuleTemplate = \
-'''<hr />
+rbModuleTemplate = '''
+<hr />
 <a NAME="{{Anchor}}" ID="{{Anchor}}"></a>
 <h2 style="background-color:{CFBgColor};color:{CFColor}">{{Module}}</h2>
 {{ModuleDescription}}
@@ -120,8 +119,8 @@
 <div align="right"><a style="color:{LinkColor}" href="#top">Up</a></div>
 <hr />'''
 
-rbModulesClassTemplate = \
-'''<a NAME="{{Anchor}}" ID="{{Anchor}}"></a>
+rbModulesClassTemplate = '''
+<a NAME="{{Anchor}}" ID="{{Anchor}}"></a>
 <h2 style="background-color:{CFBgColor};color:{CFColor}">{{Class}}</h2>
 {{ClassDescription}}
 <h3 style="background-color:{Level2HeaderBgColor};color:{Level2HeaderColor}">
@@ -134,8 +133,8 @@
 <div align="right"><a style="color:{LinkColor}" href="#top">Up</a></div>
 <hr />'''
 
-functionTemplate = \
-'''<hr />
+functionTemplate = '''
+<hr />
 <a NAME="{{Anchor}}" ID="{{Anchor}}"></a>
 <h2 style="background-color:{CFBgColor};color:{CFColor}">{{Function}}</h2>
 <b>{{Function}}</b>(<i>{{Params}}</i>)
@@ -143,13 +142,13 @@
 <div align="right"><a style="color:{LinkColor}" href="#top">Up</a></div>
 <hr />'''
 
-listTemplate = \
-'''<table>
+listTemplate = '''
+<table>
 {{Entries}}
 </table>'''
 
-listEntryTemplate = \
-'''<tr>
+listEntryTemplate = '''
+<tr>
 <td><a style="color:{LinkColor}" href="#{{Link}}">{{Name}}</a></td>
 <td>{{Deprecated}}{{Description}}</td>
 </tr>'''
@@ -160,106 +159,106 @@
 
 listEntrySimpleTemplate = '''<tr><td>{{Name}}</td></tr>'''
 
-paragraphTemplate = \
-'''<p>
+paragraphTemplate = '''
+<p>
 {{Lines}}
 </p>'''
 
-parametersListTemplate = \
-'''<dl>
+parametersListTemplate = '''
+<dl>
 {{Parameters}}
 </dl>'''
 
-parametersListEntryTemplate = \
-'''<dt><i>{{Name}}</i></dt>
+parametersListEntryTemplate = '''
+<dt><i>{{Name}}</i></dt>
 <dd>
 {{Description}}
 </dd>'''
 
-parameterTypesListEntryTemplate = \
-'''<dt><i>{{Name}}</i> ({{Type}})</dt>
+parameterTypesListEntryTemplate = '''
+<dt><i>{{Name}}</i> ({{Type}})</dt>
 <dd>
 {{Description}}
 </dd>'''
 
-returnsTemplate = \
-'''<dl>
+returnsTemplate = '''
+<dl>
 <dt>Returns:</dt>
 <dd>
 {{0}}
 </dd>
 </dl>'''
 
-returnTypesTemplate = \
-'''<dl>
+returnTypesTemplate = '''
+<dl>
 <dt>Return Type:</dt>
 <dd>
 {{0}}
 </dd>
 </dl>'''
 
-exceptionsListTemplate = \
-'''<dl>
+exceptionsListTemplate = '''
+<dl>
 {{Exceptions}}
 </dl>'''
 
-exceptionsListEntryTemplate = \
-'''<dt>Raises <b>{{Name}}</b>:</dt>
+exceptionsListEntryTemplate = '''
+<dt>Raises <b>{{Name}}</b>:</dt>
 <dd>
 {{Description}}
 </dd>'''
 
-signalsListTemplate = \
-'''<h4>Signals</h4>
+signalsListTemplate = '''
+<h4>Signals</h4>
 <dl>
 {{Signals}}
 </dl>'''
 
-signalsListEntryTemplate = \
-'''<dt>{{Name}}</dt>
+signalsListEntryTemplate = '''
+<dt>{{Name}}</dt>
 <dd>
 {{Description}}
 </dd>'''
 
-eventsListTemplate = \
-'''<h4>Events</h4>
+eventsListTemplate = '''
+<h4>Events</h4>
 <dl>
 {{Events}}
 </dl>'''
 
-eventsListEntryTemplate = \
-'''<dt>{{Name}}</dt>
+eventsListEntryTemplate = '''
+<dt>{{Name}}</dt>
 <dd>
 {{Description}}
 </dd>'''
 
-deprecatedTemplate = \
-'''<p>
+deprecatedTemplate = '''
+<p>
 <b>Deprecated.</b>
 {{Lines}}
 </p>'''
 
-authorInfoTemplate = \
-'''<p>
+authorInfoTemplate = '''
+<p>
 <i>Author(s)</i>:
 {{Authors}}
 </p>'''
 
-seeListTemplate = \
-'''<dl>
+seeListTemplate = '''
+<dl>
 <dt><b>See Also:</b></dt>
 {{Links}}
 </dl>'''
 
-seeListEntryTemplate = \
-'''<dd>
+seeListEntryTemplate = '''
+<dd>
 {{Link}}
 </dd>'''
 
 seeLinkTemplate = '''<a style="color:{LinkColor}" {{Link}}'''
 
-sinceInfoTemplate = \
-'''<p>
+sinceInfoTemplate = '''
+<p>
 <b>since</b> {{Info}}
 </p>'''
 
@@ -288,8 +287,8 @@
 {{Entries}}
 </table>'''
 
-indexListEntryTemplate = \
-'''<tr>
+indexListEntryTemplate = '''
+<tr>
 <td><a style="color:{LinkColor}" href="{{Link}}">{{Name}}</a></td>
 <td>{{Description}}</td>
 </tr>'''

eric ide

mercurial