Counts the number of newlines in the text and updates the current line accordingly.
# File action_controller/vendor/html-scanner/html/tokenizer.rb, line 74 def update_current_line(text) text.scan(/\r?\n/) { @current_line += 1 } end
<code/>
<pre/>
<code/>and<pre/>for code samples.