Question:
I have implemented the function for the <HR> tag
and it draws two lines, not one; why?
Answer:
The TagRoutines.pl module assumes that every tag will
appear twice. Once to begin a construct and once to close it.
For example:
<p> ... some text ... </p>
The module assumes the same thing about the <HR> tag.
If, for example, the HTML file contains the lines:
<ol>
<li> ... some text ...
<hr>
<li> ... some more text ...
</ol>
then the TagRoutines.pl module will call the HR function with
the argument 'START' when the <hr> tag is
encountered.
It will call the HR function again, but with the argument
'END', when it comes to the end of the enclosing construct
<ol>...</ol> -- following the principle that there
seems to have been a missing </hr> tag.
If you code the HR function to print the line only when called
with the 'START' argument, that will suffice to cure
the problem.