summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJensDiemer <git@jensdiemer.de>2022-08-20 21:51:53 +0200
committerJensDiemer <git@jensdiemer.de>2022-08-20 21:52:39 +0200
commitb9bcaed20c3dae4034077e9f6217e999c7904072 (patch)
treef5c50bf51b23aad90056ae39c52be5e5a49dde10
parente6061ed33ad586651f080937ea1d4508e39583ae (diff)
downloadcreole-b9bcaed20c3dae4034077e9f6217e999c7904072.tar.gz
Bugfix errors in README + fix code style
-rw-r--r--README.creole2
-rw-r--r--README.md4
-rw-r--r--README.rst4
-rw-r--r--creole/emitter/html2markdown_emitter.py4
4 files changed, 7 insertions, 7 deletions
diff --git a/README.creole b/README.creole
index 1b81f8d..3c3cf99 100644
--- a/README.creole
+++ b/README.creole
@@ -392,7 +392,7 @@ Note: In this case you must install **docutils**! See above.
** only emit children of empty tags like div and span (contributed by Eric O'Connell)
** remove inter wiki links and doesn't check the protocol
* v0.3.3
-** Use <tt> when ~{~{~{ ... ~}~}~} is inline and not <pre>, see: [[http://forum.pylucid.org/viewtopic.php?f=3&t=320|PyLucid Forum Thread]]
+** Use {{{<tt>}}} when ~{~{~{ ... ~}~}~} is inline and not {{{<pre>}}}, see: [[http://forum.pylucid.org/viewtopic.php?f=3&t=320|PyLucid Forum Thread]]
** Bugfix in html2creole: insert newline before new list. TODO: apply to all block tags: [[http://code.google.com/p/python-creole/issues/detail?id=16#c5|issues 16]]
* v0.3.2
** Bugfix for spaces after Headline: [[https://code.google.com/p/python-creole/issues/detail?id=15|issues 15]]
diff --git a/README.md b/README.md
index 1bf54ee..ed348a3 100644
--- a/README.md
+++ b/README.md
@@ -397,7 +397,7 @@ Note: In this case you must install **docutils**! See above.
* only emit children of empty tags like div and span (contributed by Eric O'Connell)
* remove inter wiki links and doesn't check the protocol
* v0.3.3
- * Use <tt> when {{{ ... }}} is inline and not <pre>, see: [PyLucid Forum Thread](http://forum.pylucid.org/viewtopic.php?f=3&t=320)
+ * Use `<tt>` when {{{ ... }}} is inline and not `<pre>`, see: [PyLucid Forum Thread](http://forum.pylucid.org/viewtopic.php?f=3&t=320)
* Bugfix in html2creole: insert newline before new list. TODO: apply to all block tags: [issues 16](http://code.google.com/p/python-creole/issues/detail?id=16#c5)
* v0.3.2
* Bugfix for spaces after Headline: [issues 15](https://code.google.com/p/python-creole/issues/detail?id=15)
@@ -453,4 +453,4 @@ first source code was written 27.11.2008: [Forum thread (de)](http://www.python-
------------
-``Note: this file is generated from README.creole 2022-08-20 21:45:05 with "python-creole"`` \ No newline at end of file
+``Note: this file is generated from README.creole 2022-08-20 21:51:36 with "python-creole"`` \ No newline at end of file
diff --git a/README.rst b/README.rst
index 83ae10a..389a0a1 100644
--- a/README.rst
+++ b/README.rst
@@ -619,7 +619,7 @@ history
* v0.3.3
- * Use <tt> when {{{ ... }}} is inline and not <pre>, see: `PyLucid Forum Thread <http://forum.pylucid.org/viewtopic.php?f=3&t=320>`_
+ * Use ``<tt>`` when {{{ ... }}} is inline and not ``<pre>``, see: `PyLucid Forum Thread <http://forum.pylucid.org/viewtopic.php?f=3&t=320>`_
* Bugfix in html2creole: insert newline before new list. TODO: apply to all block tags: `issues 16 <http://code.google.com/p/python-creole/issues/detail?id=16#c5>`_
@@ -728,4 +728,4 @@ donation
------------
-``Note: this file is generated from README.creole 2022-08-20 21:45:05 with "python-creole"`` \ No newline at end of file
+``Note: this file is generated from README.creole 2022-08-20 21:51:36 with "python-creole"`` \ No newline at end of file
diff --git a/creole/emitter/html2markdown_emitter.py b/creole/emitter/html2markdown_emitter.py
index 695dd86..540d53a 100644
--- a/creole/emitter/html2markdown_emitter.py
+++ b/creole/emitter/html2markdown_emitter.py
@@ -53,7 +53,7 @@ class MarkdownEmitter(BaseEmitter):
code = self.deentity.replace_all(code_node.children[0].content)
class_value = code_node.attrs.get('class')
- if class_value :
+ if class_value:
if class_value.startswith('language-'):
language = class_value.partition('-')[2]
return f'```{language}{code}```\n\n'
@@ -123,7 +123,7 @@ class MarkdownEmitter(BaseEmitter):
link_text = self.emit_children(node)
url = node.attrs['href']
title = node.attrs.get('title')
- if title :
+ if title:
return f'[{link_text}]({url} "{title}")'
else:
return f'[{link_text}]({url})'