-
Notifications
You must be signed in to change notification settings - Fork 429
Option for ignoring regex #482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@MaVo159 thanks for the issue. What version of tidy are you using? With your input, and
Yes, there has been some re-lining of the code, but no additional There has been some previous discussion on something like this... see #282, #310, #396, #447, and maybe others... Look forward to further comments... thanks... |
Thanks. Nice to see that this particular case is not an issue anymore. I am using 5.2.0. (debian testing) I think this is all I can contribute to the discussion, since I don't know the project very well. Feel free to close. |
Closed by request of @MaVo159. |
This is still an issue I think. This snippet generates two warnings:
A regex to ignore these would just be <table summary="Stuff">
<tr>
{{range .}}
<td valign="top">
<img src="{{.Thumb}}" height="{{.ThumbY}}" width="{{.ThumbX}}" alt="{{.Alt}}">
</td>
{{end}}
</tr>
</table> |
A common issue is that tidy is fundamentally incompatible with most template engines.
It would be convenient if tidy could treat strings that match a particular regular expression the same way it treats comments.
Alternatively just preventing the addition of completely new pairs of tags would go a long way.
Small example to illustrate a typical case where not adding new tags or ignoring
{{[^}]+}}
would help:should not change at all, but is at the moment replaced by
The text was updated successfully, but these errors were encountered: