<div dir="ltr">Thanks, Bill.<div><br></div><div>My case-statement regex was confused by the parentheses in "case(MFVEC3F):", and I completely missed the check for "if, else, switch" etc. because they're almost always followed by "{" in VTK.</div><div><br></div><div>Here's an MR with the fixes:</div><div><a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/1613/diffs">https://gitlab.kitware.com/vtk/vtk/merge_requests/1613/diffs</a></div><div><br></div><div>Let me know if you find anything else.</div><div><br></div><div> - David</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 2, 2016 at 11:21 AM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Also seems to have trouble with case statements...<br>
--- a/IO/Export/vtkX3DExporterXMLWriter.cxx<br>
+++ b/IO/Export/vtkX3DExporterXMLWriter.cxx<br>
@@ -211,17 +211,17 @@ void vtkX3DExporterXMLWriter::SetField(int<br>
attributeID, int type, vtkDataArray*<br>
   {<br>
   case(MFVEC3F):<br>
     for (vtkIdType i = 0; i < a->GetNumberOfTuples(); i++)<br>
-    {<br>
+  {<br><br><div class=""><div class="h5">
On Sat, Jul 2, 2016 at 12:53 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>> wrote:<br>
> David,<br>
><br>
> vtk_reindent_code.py has trouble with for loops after if blocks that<br>
> do not have braces.<br></div></div></blockquote></div></div></div></div>