Dokuwiki: '0' headline isn't displayed.

Created on 28 Nov 2016  路  4Comments  路  Source: splitbrain/dokuwiki

A headline containing only the '0' digit is not displayed. I put an example in the playground.

Bug

All 4 comments

Thanks for the clear example.
https://www.dokuwiki.org/playground:bug1770

I guess somewhere is checked if we have an empty value.

https://github.com/splitbrain/dokuwiki/blob/master/inc/parser/xhtml.php#L1691

If $heading is '0', it is skipped, and $default is returned instead.

            if(useHeading($linktype) && $id) {
                $heading = p_get_first_heading($id);
                if($heading) {
                    return $this->_xmlEntities($heading);
                }
            }
            return $this->_xmlEntities($default);

Hmm this is for titles of the urls.

This is the check for headers, same logic:

https://github.com/splitbrain/dokuwiki/blob/master/inc/parser/xhtml.php#L194

    if(!$text) return; //skip empty headlines

So we should use blank() in these cases?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

schplurtz picture schplurtz  路  5Comments

schplurtz picture schplurtz  路  6Comments

ackbyte picture ackbyte  路  3Comments

splitbrain picture splitbrain  路  4Comments

selfthinker picture selfthinker  路  6Comments