You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indentation rules are applied inside <pre>...</pre> blocks
Which terms did you search for in the documentation and issue tracker?
"pre"
Environment
Python 3.8 curlylint==0.12.0
Steps to reproduce
If I run curlylint --rule 'indent: 2' on a snippet like
<preclass="highlight"><code>SELECT
pid,
(CURRENT_TIMESTAMP - query_start) as query_time,
datname,
usename,
query
FROM pg_stat_activity
ORDER BY query_time DESC;
</code></pre>
curlylint wants me to change it to
<preclass="highlight"><code>
SELECT
pid,
(CURRENT_TIMESTAMP - query_start) as query_time,
datname,
usename,
query
FROM pg_stat_activity
ORDER BY query_time DESC;
</code></pre>
to resolve the indent errors. Doing this changes the meaning/display of this snippet from
SELECT
pid,
(CURRENT_TIMESTAMP - query_start) as query_time,
datname,
usename,
query
FROM pg_stat_activity
ORDER BY query_time DESC;
to
SELECT
pid,
(CURRENT_TIMESTAMP - query_start) as query_time,
datname,
usename,
query
FROM pg_stat_activity
ORDER BY query_time DESC;
0:5 '<code>SELECT\n p…' should be on the next line indent
0:11 Bad text indentation, expected 4, got 2 indent
0:11 Bad text indentation, expected 4, got 0 indent
8:0 Bad indentation, expected 2, got 0 indent
8:7 '</pre>' should be on the next line indent
The text was updated successfully, but these errors were encountered:
Good question – currently the tests folder is only used for my manual testing. There are a few templates in there that I’ve gradually started pulling into unit tests, but that’s about it. There are no test cases at all for the indent rule currently.
Describe the bug
Indentation rules are applied inside
<pre>...</pre>
blocksWhich terms did you search for in the documentation and issue tracker?
"pre"
Environment
Python 3.8
curlylint==0.12.0
Steps to reproduce
If I run
curlylint --rule 'indent: 2'
on a snippet likecurlylint wants me to change it to
to resolve the indent errors. Doing this changes the meaning/display of this snippet from
to
Expected behavior
Don't enforce indentation rules inside
<pre>...</pre>
blocksActual behavior
The text was updated successfully, but these errors were encountered: