aboutsummaryrefslogtreecommitdiff
path: root/lib/converter/restructuredtext.php
diff options
context:
space:
mode:
authorChristian Weiske <weiske@mogic.com>2016-06-21 09:47:48 +0200
committerChristian Weiske <weiske@mogic.com>2016-06-21 09:47:48 +0200
commit3eaf73ae96bff4c0f967a7c2e2f8759dfa2bd006 (patch)
treeefc1680ab1327e00b8f58a7d1fe65d84c6274a42 /lib/converter/restructuredtext.php
parent3706e6412a08c8f4b873ba38533b0479398136e7 (diff)
downloadgrauphel-3eaf73ae96bff4c0f967a7c2e2f8759dfa2bd006.tar.gz
grauphel-3eaf73ae96bff4c0f967a7c2e2f8759dfa2bd006.zip
Fix E_NOTICE in rST converter
Diffstat (limited to 'lib/converter/restructuredtext.php')
-rw-r--r--lib/converter/restructuredtext.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/converter/restructuredtext.php b/lib/converter/restructuredtext.php
index 149fa4a..bc20551 100644
--- 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";
}