<a class="anchor" id="tag">
instead of
<a name="tag">
for anchors. Recognize these as well.
git-svn-id: https://svn.dealii.org/trunk@21143
0785d39b-7218-0410-832d-
ea1e28bc413d
open IN2, $filename;
$found = 0;
while ( <IN2> ) {
- while ( /<a[^>]* name=\"?(.*?)[\s\"]/gi ) {
- if ( $1 eq $internal_ref) {
+ while ( /<a[^>]* (name=|class=\"anchor\" id=)\"?(.*?)[\s\"]/gi ) {
+ if ( $2 eq $internal_ref) {
print " found.\n" if $debug;
$found = 1;
last;
open IN2, $external_file;
$found = 0;
while ( <IN2> ) {
- while ( /<a[^>]* name=\"?(.*?)[\s\"]/gi ) {
- if ( $1 eq $external_ref) {
+ while ( /<a[^>]* (name=|class=\"anchor\" id=)\"?(.*?)[\s\"]/gi ) {
+ if ( $2 eq $external_ref) {
print " found.\n" if $debug;
$found = 1;
last;
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams