title: Using VQMod offset properly
body: <p>I am creating a small VQMod for OpenCart</p>
  
  <p>I want to search for a piece of code with mulitple lines however I can't figure out the right offset value to do so.</p>
  
  <p>I was reading the vqmod manual and they recommend you count the ammount of lines then subtract the number of lines by 1 to determine the offset however it doesn't work for me?</p>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;modification&gt;
  
      &lt;id&gt;xxx&lt;/id&gt;
      &lt;version&gt;xxx&lt;/version&gt;
      &lt;vqmver&gt;xxx&lt;/vqmver&gt;
      &lt;author&gt;xxx&lt;/author&gt;
  
      &lt;file name="catalog/view/theme/*/template/account/register.tpl"&gt;
          &lt;operation&gt;
              &lt;search position="replace" offset="17"&gt;&lt;![CDATA[
          &lt;tr&gt;
              &lt;td&gt;&lt;?php echo $entry_company; ?&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input type="text" name="company" value="&lt;?php echo $company; ?&gt;" class="large-field" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr id="company-id-display"&gt;
            &lt;td&gt;&lt;span id="company-id-required" class="required"&gt;*&lt;/span&gt; &lt;?php echo $entry_company_id; ?&gt;&lt;/td&gt;
            &lt;td&gt;&lt;input type="text" name="company_id" value="&lt;?php echo $company_id; ?&gt;" /&gt;
              &lt;?php if ($error_company_id) { ?&gt;
              &lt;span class="error"&gt;&lt;?php echo $error_company_id; ?&gt;&lt;/span&gt;
              &lt;?php } ?&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr id="tax-id-display"&gt;
            &lt;td&gt;&lt;span id="tax-id-required" class="required"&gt;*&lt;/span&gt; &lt;?php echo $entry_tax_id; ?&gt;&lt;/td&gt;
            &lt;td&gt;&lt;input type="text" name="tax_id" value="&lt;?php echo $tax_id; ?&gt;" /&gt;
              &lt;?php if ($error_tax_id) { ?&gt;
              &lt;span class="error"&gt;&lt;?php echo $error_tax_id; ?&gt;&lt;/span&gt;
              &lt;?php } ?&gt;&lt;/td&gt;
          &lt;/tr&gt;
          ]]&gt;&lt;/search&gt;
              &lt;add&gt;&lt;![CDATA[ 
              &lt;?php echo 'test'; ?&gt;
          ]]&gt;&lt;/add&gt;
          &lt;/operation&gt;            
      &lt;/file&gt;     
  
  
  &lt;/modification&gt;
  </code></pre>
  
  <p>I counted 18 lines and set my offset to 17.</p>
  
  <p>Am I going wrong somewhere.</p>
  
  <p>Will be great to hear back from you all
  Thanks
  Peter</p>