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 authored Nov 28, 2024
1 parent 26cf8cf commit 378834b
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 @@ -28,13 +28,14 @@ <h2>Driver and database name</h2>

<ul>
<li> Database name - in case of connection from localhost</li>
<li> String of comma separated list of kye=value options.
Supported options are:</li>
<ul>
<li> dbname - database name</li>
<li> host - host name or IP address</li>
<li> port - server port number</li>
</ul>
<li> String of comma separated list of key=value options.
Supported options are:
<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 378834b

Please sign in to comment.