Skip to content

Commit

Permalink
db/MySQL: fix HTML manual nested <ul></ul> element position (#4778)
Browse files Browse the repository at this point in the history
* db/MySQL: fix HTML manual nested `<ul></ul>` element position

Fix `HTMLParser()` class instance find nested `<ul>` end element `</ul>`
error during compilation GRASS GIS source code:

```
Error (IndexError('pop from empty list'))
```

Problematic is nested `<ul></ul>` HTML element inside parent `<ul></ul>`
element:

```
 <ul>
     <li></li>
     <li></li>
      <ul>
          <li></li>
          <li></li>
          <li></li>
      </ul>
 </ul>
```

Expected nested `<ul></ul>` HTML element inside parent `<ul></ul>` is
nested position inside `<li></li>` element.

```
<ul>
    <li></li>
    <li>
        <ul>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </li>
</ul>
```

* Fix typo of key word
  • Loading branch information
tmszi committed Nov 28, 2024
1 parent de8bd23 commit ab7097c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions db/drivers/mysql/grass-mysql.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ <h2>Driver and database name</h2>
The parameter 'database' can be given in two formats:

<ul>
<li> Database name - in case of connection from localhost
<li> String of comma separated list of kye=value options.
<li> Database name - in case of connection from localhost</li>
<li> String of comma separated list of key=value options.
Supported options are:
<ul>
<li> dbname - database name
<li> host - host name or IP address
<li> port - server port number
</ul>
<ul>
<li> dbname - database name</li>
<li> host - host name or IP address</li>
<li> port - server port number</li>
</ul>
</li>
</ul>
<p>
Examples of connection parameters:
Expand Down

0 comments on commit ab7097c

Please sign in to comment.