[".join(" ", map {
$_ eq $lang ? $_ :
@@ -112,7 +112,7 @@ foreach my $lang (@lang) {
# Second run: create the file
while(my $l =
) { # Header
- last if($l =~ m/name="perl"/);
+ last if($l =~ m/(name|id)="perl"/);
print OUT $l;
chkAndGenLangLinks($l, $lang, \*OUT);
@@ -125,7 +125,7 @@ foreach my $lang (@lang) {
}
# Copy the tail
- print OUT '',"\n";
+ print OUT '',"\n";
$var = "perl";
while(my $l = ) {
@@ -186,8 +186,7 @@ generateModuleCommandref($$;$$)
$docCount++;
next if($noWarnings);
- $hasLink = ($l =~ m/]+)>/i) {
my $attr = $1;
@@ -217,7 +216,7 @@ generateModuleCommandref($$;$$)
if(!$jsFile && $suffix && !$docCount && !$dosMode) {
if($lang eq "DE" && $fh) {
print $fh <
+
$mod
Leider keine deutsche Dokumentation vorhanden. Die englische Version gibt es
diff --git a/fhem/contrib/commandref_modular.pl b/fhem/contrib/commandref_modular.pl
index ef17e9bbc..8c8b091f4 100644
--- a/fhem/contrib/commandref_modular.pl
+++ b/fhem/contrib/commandref_modular.pl
@@ -85,10 +85,8 @@ for my $lang (@lang) {
push @lang,($1 eq "" ? "EN":substr($1,1)) if($l =~ m/^=begin html(.*)/);
$modData{$mName}{type}=$1 if($l =~ m/^=item\s+(helper|command|device)/);
$modData{$mName}{$1} =$2 if($l =~ m/^=item\s+(summary[^ ]*)\s(.*)$/);
- $modData{$mName}{modLinks}{$1} = 1
- if($l =~ m//);
- $modData{$mName}{modLinks}{$1} = 1
- if($l =~ m//);
+ $modData{$mName}{modLinks}{$2} = 1
+ if($l =~ m//);
}
$modData{$mName}{modLangs} = join(",", @lang);
close(FH);
@@ -101,7 +99,7 @@ for my $lang (@lang) {
$cmdref = ">docs/commandref${sfx}.html";
open(OUT, $cmdref) || die("Cant open $cmdref: $!\n");
-
+
my $linkDumped = 0;
while(my $l = ) {
diff --git a/fhem/contrib/commandref_static.pl b/fhem/contrib/commandref_static.pl
index c2d93423a..fa423848a 100755
--- a/fhem/contrib/commandref_static.pl
+++ b/fhem/contrib/commandref_static.pl
@@ -96,10 +96,8 @@ for my $lang (@lang) {
push @lang,($1 eq "" ? "EN":substr($1,1)) if($l =~ m/^=begin html(.*)/);
$modData{$mName}{type}=$1 if($l =~ m/^=item\s+(helper|command|device)/);
$modData{$mName}{$1} =$2 if($l =~ m/^=item\s+(summary[^ ]*)\s(.*)$/);
- $modData{$mName}{modLinks}{$1} = 1
- if($l =~ m//);
- $modData{$mName}{modLinks}{$1} = 1
- if($l =~ m//);
+ $modData{$mName}{modLinks}{$2} = 1
+ if($l =~ m//);
}
$modData{$mName}{modLangs} = join(",", @lang);
close(FH);