git.cweiske.de
/
grauphel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3706e64
)
Fix E_NOTICE in rST converter
author
Christian Weiske
<weiske@mogic.com>
Tue, 21 Jun 2016 07:47:48 +0000
(09:47 +0200)
committer
Christian Weiske
<weiske@mogic.com>
Tue, 21 Jun 2016 07:47:48 +0000
(09:47 +0200)
lib/converter/restructuredtext.php
patch
|
blob
|
history
diff --git
a/lib/converter/restructuredtext.php
b/lib/converter/restructuredtext.php
index 149fa4a224413895976b144411d84c473bfc5d67..bc2055113e040fc0fb2d6c60d1b9af3fa374c13e 100644
(file)
--- a/
lib/converter/restructuredtext.php
+++ b/
lib/converter/restructuredtext.php
@@
-106,7
+106,9
@@
class ReStructuredText extends Base
$store .= static::$simpleMap[$reader->name];
} else if ($reader->name == 'list') {
--$listLevel;
- $listPrefix = str_repeat(' ', $listLevel);
+ $listPrefix = str_repeat(
+ ' ', $listLevel < 0 ? 0 : $listLevel
+ );
if ($listLevel == -1) {
$store .= "\n";
}