mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
bdd: add tests for valid debug output
This commit is contained in:
@@ -96,7 +96,7 @@ class HTMLLogger(BaseLogger):
|
||||
.compile(conn.sync_engine, compile_kwargs={"literal_binds": True}))
|
||||
if CODE_HIGHLIGHT:
|
||||
sqlstr = highlight(sqlstr, PostgresLexer(),
|
||||
HtmlFormatter(nowrap=True, lineseparator='<br>'))
|
||||
HtmlFormatter(nowrap=True, lineseparator='<br />'))
|
||||
self._write(f'<div class="highlight"><code class="lang-sql">{sqlstr}</code></div>')
|
||||
else:
|
||||
self._write(f'<code class="lang-sql">{sqlstr}</code>')
|
||||
|
||||
Reference in New Issue
Block a user